Separate services - app, db, and job #1

Open
swapnil wants to merge 36 commits from swapnil/inoreader2readwise:main into main
Showing only changes of commit bf8b33edde - Show all commits

View File

@ -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')