add error return from event

This commit is contained in:
nolan 2023-12-12 21:43:25 -08:00
parent 6f56643466
commit eb4984e0e8
2 changed files with 5 additions and 2 deletions

View File

@ -117,4 +117,7 @@ class Event():
# Log error and retunr null # Log error and retunr null
logging.error("[AFEVENT UPDATE] [%s]", response.text) logging.error("[AFEVENT UPDATE] [%s]", response.text)
return None try:
return response.json()
except:
return None

View File

@ -9,7 +9,7 @@ with open('README.md', 'r') as f:
setup( setup(
name='lib_af_api', name='lib_af_api',
version='0.1.5', version='0.1.6',
author='', author='',
author_email='', author_email='',
description='', description='',