Skip to content

Instantly share code, notes, and snippets.

@code-review-doctor
Created April 26, 2022 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save code-review-doctor/62bafaf147f5448ea3c29d199ae1aaeb to your computer and use it in GitHub Desktop.
Save code-review-doctor/62bafaf147f5448ea3c29d199ae1aaeb to your computer and use it in GitHub Desktop.
try:
self.time_to_live_seconds = int(ttl)
except ValueError as e:
logger.error('TTL must be a number; got "{ttl}"')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment