Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 26, 2023
1 parent 5fa9aaf commit b63ae9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/ddns-lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
LOGGER = logging.getLogger()
account_id = None
region = None
VERSION = '1.2.0b59'
VERSION = '1.2.0b60'

# Read Env variables
DEBUG_LOG_LEVEL = os.environ.get('DebugLogLevel', 'INFO')
Expand Down Expand Up @@ -1036,8 +1036,9 @@ def lambda_handler(
put_item_in_dynamodb_table(
dynamodb_client, DDBNAME, instance_id, instance_attributes)
LOGGER.debug(f"Done updating item in dynamodb table {lineno()}")
except Exception as err:
LOGGER.error(f"Error putting item in DDB table {instance_id} error {err} {lineno()}")
except Exception as err:
LOGGER.error(
f"Error putting item in DDB table {instance_id} error {err} {lineno()}")

# Clean up DynamoDB after deleting records
if state != 'running':
Expand Down
Binary file modified code/ddns-lambda.zip
Binary file not shown.

0 comments on commit b63ae9d

Please sign in to comment.