forked from PeterSurda/inoreader2readwise
app: try better error in app
This commit is contained in:
parent
cce57bca72
commit
bf8b33edde
|
@ -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