aboutsummaryrefslogtreecommitdiff
path: root/contrib/devtools/update-translations.py
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-07-09 22:57:02 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-08-28 15:18:14 +0200
commit25cd520fc429c464846b0f986104db45b3bfaebb (patch)
tree3b8055f06c0b70d0cdd2431d2597f6173f3d643d /contrib/devtools/update-translations.py
parentf088a1bb392eaecd912ff9bca6967a8f4765c2b7 (diff)
Use sys.exit(...) instead of exit(...): exit(...) should not be used in programs
Diffstat (limited to 'contrib/devtools/update-translations.py')
-rwxr-xr-xcontrib/devtools/update-translations.py4
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.'''