Skip to content

Commit 6d5f32c

Browse files
authored
Merge pull request #1613 from lonvia/lint-replication-script
Minor linting fixes for osm2pgsql-replication
2 parents 8fcfe7b + 16d7f7b commit 6d5f32c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/osm2pgsql-replication

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import sys
2727
import subprocess
2828
import tempfile
2929
from textwrap import dedent
30-
import traceback
3130
from pathlib import Path
3231
import urllib.request as urlrequest
3332

@@ -487,7 +486,7 @@ def main():
487486

488487
if args.subcommand is None:
489488
parser.print_help()
490-
exit(1)
489+
sys.exit(1)
491490

492491
logging.basicConfig(stream=sys.stderr,
493492
format='{asctime} [{levelname}]: {message}',
@@ -509,4 +508,4 @@ def main():
509508

510509

511510
if __name__ == '__main__':
512-
exit(main())
511+
sys.exit(main())

0 commit comments

Comments
 (0)