fixes and extra logging
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user