Separate services - app, db, and job #1
|
@ -169,7 +169,9 @@ def save_token(email, access_token, refresh_token, expiration_seconds):
|
||||||
'expiration_seconds': expiration_seconds
|
'expiration_seconds': expiration_seconds
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
response.raise_for_status()
|
# response.raise_for_status()
|
||||||
|
if response.status_code not in range(200, 300):
|
||||||
|
raise Exception(f'HTTPError: {response.status_code} \n Message: {response.json()}')
|
||||||
|
|
||||||
return response.json().get('id')
|
return response.json().get('id')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user