From bbf7b4a15038d458e0fc1eadcb0bb957887275ec Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Wed, 14 Dec 2016 05:16:33 +0100 Subject: github-lambda: initialize variable --- src/blogc-github-lambda/lambda_function.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/blogc-github-lambda') diff --git a/src/blogc-github-lambda/lambda_function.py b/src/blogc-github-lambda/lambda_function.py index 7fcc1d8..233cd7d 100644 --- a/src/blogc-github-lambda/lambda_function.py +++ b/src/blogc-github-lambda/lambda_function.py @@ -91,6 +91,7 @@ def translate_filename(filename): def sync_s3(src, dest, settings_file): + settings = {} if os.path.exists(settings_file): with open(settings_file, 'r') as fp: settings = json.load(fp) -- cgit v1.2.3-18-g5258