Private
Public Access
1
0

fixes and extra logging

This commit is contained in:
Sander Roosendaal
2021-11-09 21:30:11 +01:00
parent 919e7f331b
commit 806e5837f9
5 changed files with 26 additions and 9 deletions

View File

@@ -139,8 +139,11 @@ def get_polar_notifications():
available_data = []
if response.status_code == 200:
available_data = response.json()['available-user-data']
try:
if response.status_code == 200:
available_data = response.json()['available-user-data']
except AttributeError:
pass
return available_data