Skip to content

Commit 2c05f82

Browse files
committed
Prefixed sys. to exit(1) in create_translations() raise
1 parent 5a95615 commit 2c05f82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • translate-messages/src/translate_messages/lib

translate-messages/src/translate_messages/lib/language.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def create_translations(cli, target_msgs, lang_code):
2828
translated_msg = original_msg
2929
except Exception as err:
3030
print(f'\n{log.colors.br}{cli.msgs.err_TRANSLATE_FAILED_FOR_KEY} "{key}": {err}')
31-
if 'TOO MANY REQUESTS' in str(err).upper() : log.tip(f'{cli.msgs.tip_USE_A_VPN}.') ; exit(1)
31+
if 'TOO MANY REQUESTS' in str(err).upper() : log.tip(f'{cli.msgs.tip_USE_A_VPN}.') ; sys.exit(1)
3232
translated_msg = original_msg
3333
translated_msgs[key] = { 'message': translated_msg }
3434
else:

0 commit comments

Comments
 (0)