Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-05-15 17:13:07 +02:00
parent 9e3b12df57
commit e485f060e7
6 changed files with 59 additions and 3 deletions

View File

@@ -127,7 +127,12 @@ def get_polar_notifications():
headers = { 'Authorization': 'Basic %s' % base64.b64encode(
bytes(auth_string,'utf-8')).decode('utf-8') }
response = requests.get(url, headers=headers)
try:
response = requests.get(url, headers=headers)
except ConnectionError:
response = {
'status_code':400,
}
available_data = []