We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sys.
exit(1)
create_translations()
1 parent 5a95615 commit 2c05f82Copy full SHA for 2c05f82
1 file changed
translate-messages/src/translate_messages/lib/language.py
@@ -28,7 +28,7 @@ def create_translations(cli, target_msgs, lang_code):
28
translated_msg = original_msg
29
except Exception as err:
30
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)
+ if 'TOO MANY REQUESTS' in str(err).upper() : log.tip(f'{cli.msgs.tip_USE_A_VPN}.') ; sys.exit(1)
32
33
translated_msgs[key] = { 'message': translated_msg }
34
else:
0 commit comments