Skip to content

Commit 32a5959

Browse files
author
Maciej Olko
committed
Raise for status while getting resources
1 parent d5e6884 commit 32a5959

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

manage_translation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def _get_resources():
9393
f'https://api.transifex.com/organizations/python-doc/projects/{PROJECT_SLUG}/resources/',
9494
params={'language_code': LANGUAGE, 'offset': offset},
9595
auth=('api', transifex_api_key))
96+
response.raise_for_status()
9697
response_list = response.json()
9798
resources.extend(response_list)
9899
if len(response_list) < 100:

0 commit comments

Comments
 (0)