diff options
| author | Alex Schofield <git@ajschof.me> | 2024-08-20 00:18:16 +0100 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2024-08-20 00:18:16 +0100 |
| commit | 640b0685cd795c03b571b3ca26fc9030b86c4f99 (patch) | |
| tree | 168b52ebb011688da458c9485dd68d88fa558a33 /src | |
| parent | 32175a3b4387a8218b4e21561173445fd5b5df1d (diff) | |
| download | de-project-bentley-640b0685cd795c03b571b3ca26fc9030b86c4f99.tar.gz de-project-bentley-640b0685cd795c03b571b3ca26fc9030b86c4f99.zip | |
fix(extract_lambda): fix UnboundLocalError when db is called before it is assigned a value
Diffstat (limited to 'src')
| -rw-r--r-- | src/extract_lambda.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/extract_lambda.py b/src/extract_lambda.py index 8575b08..7efaac0 100644 --- a/src/extract_lambda.py +++ b/src/extract_lambda.py @@ -29,6 +29,7 @@ def lambda_handler(event, context): and converts all tables to CSV and if any of those tables do not exist in, or are different to the ones in s3, it uploads them it uses 3 helper functions to achieve these 3 functionalities """ + db = None try: db = connect_to_database() existing_files = list_existing_s3_files() |
