From 92d3a1a858b6451c1a7d4ee0a1ea107c1b0ac402 Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Sat, 24 Jan 2026 16:24:11 -0600 Subject: [PATCH] asdasd --- DMS/sync_dynamodb_to_sieve.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/DMS/sync_dynamodb_to_sieve.py b/DMS/sync_dynamodb_to_sieve.py index 60cae02..dc047e5 100644 --- a/DMS/sync_dynamodb_to_sieve.py +++ b/DMS/sync_dynamodb_to_sieve.py @@ -68,11 +68,13 @@ def sync(): # Compile os.system(f'sievec {sieve_path}') - # Set ownership to mail user + # Set ownership os.system(f'chown docker:docker {sieve_path}') - os.system(f'chown docker:docker {sieve_path}.svbin') + svbin_path = f'{sieve_path}.svbin' + if os.path.exists(svbin_path): + os.system(f'chown docker:docker {svbin_path}') - print(f'✓ {email}') + print(f'✓ {email}') if __name__ == '__main__': sync() \ No newline at end of file