Skip to content

Commit 74f641a

Browse files
Fix ruff issue
1 parent 3543666 commit 74f641a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎manage_translation.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def fetch():
3939
"""
4040
if (code := call('tx --version', shell=True)) != 0:
4141
sys.stderr.write('The Transifex client app is required.\n')
42-
exit(code)
42+
sys.exit(code)
4343
lang = LANGUAGE
4444
_call(f'tx pull -l {lang} --minimum-perc=1 --force --skip')
4545
for file in Path().rglob('*.po'):
@@ -48,7 +48,7 @@ def fetch():
4848

4949
def _call(command: str):
5050
if (return_code := call(command, shell=True)) != 0:
51-
exit(return_code)
51+
sys.exit(return_code)
5252

5353

5454
def recreate_tx_config():

0 commit comments

Comments
 (0)