diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-07-09 22:57:02 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-08-28 15:18:14 +0200 |
commit | 25cd520fc429c464846b0f986104db45b3bfaebb (patch) | |
tree | 3b8055f06c0b70d0cdd2431d2597f6173f3d643d /contrib/devtools/update-translations.py | |
parent | f088a1bb392eaecd912ff9bca6967a8f4765c2b7 (diff) |
Use sys.exit(...) instead of exit(...): exit(...) should not be used in programs
Diffstat (limited to 'contrib/devtools/update-translations.py')
-rwxr-xr-x | contrib/devtools/update-translations.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/devtools/update-translations.py b/contrib/devtools/update-translations.py index 2011841005..e1924749d2 100755 --- a/contrib/devtools/update-translations.py +++ b/contrib/devtools/update-translations.py @@ -36,12 +36,12 @@ def check_at_repository_root(): if not os.path.exists('.git'): print('No .git directory found') print('Execute this script at the root of the repository', file=sys.stderr) - exit(1) + sys.exit(1) def fetch_all_translations(): if subprocess.call([TX, 'pull', '-f', '-a']): print('Error while fetching translations', file=sys.stderr) - exit(1) + sys.exit(1) def find_format_specifiers(s): '''Find all format specifiers in a string.''' |