autojoin
This commit is contained in:
@@ -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 = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user