diff --git a/code/ddns-lambda.py b/code/ddns-lambda.py index 064c1b3..ed5f84b 100755 --- a/code/ddns-lambda.py +++ b/code/ddns-lambda.py @@ -73,7 +73,7 @@ LOGGER = logging.getLogger() ACCOUNT = None REGION = None -VERSION = '0.1.16' +VERSION = '0.1.17' # Adjust the logging level [logging.INFO, logging.DEBUG, logging.WARNING, etc] LOGGER.setLevel(logging.DEBUG) @@ -713,8 +713,8 @@ def lambda_handler( except BaseException as err: LOGGER.info("unexpected error. %s\n", str(err) + lineno()) -# else: # not running so delete the records - elif state == 'terminated': +# elif state == 'terminated': + else: # not running so delete the records try: # pause 1 before deleting to avoid API limit diff --git a/code/ddns-lambda.zip b/code/ddns-lambda.zip index 7f7d87e..7f01144 100644 Binary files a/code/ddns-lambda.zip and b/code/ddns-lambda.zip differ