diff options
author | Ryan Farley <ryan.farley@gmx.com> | 2017-10-17 14:47:45 -0500 |
---|---|---|
committer | Ryan Farley <ryan.farley@gmx.com> | 2017-10-17 14:48:56 -0500 |
commit | af8a5c58da8dcac6ee8d6c821302b6092a07aaca (patch) | |
tree | 3a48f1079866dced572cf468f5b162605b52c3da /scripts/importer.py | |
parent | 73c5666ff9c607ff7ee013a5d537318ea0a7f71b (diff) | |
download | qutebrowser-af8a5c58da8dcac6ee8d6c821302b6092a07aaca.tar.gz qutebrowser-af8a5c58da8dcac6ee8d6c821302b6092a07aaca.zip |
use sys.exit
Diffstat (limited to 'scripts/importer.py')
-rwxr-xr-x | scripts/importer.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/importer.py b/scripts/importer.py index 96bf1a942..d1d6fe9b5 100755 --- a/scripts/importer.py +++ b/scripts/importer.py @@ -27,7 +27,7 @@ Currently only importing bookmarks from Netscape Bookmark files is supported. import argparse - +import sys browser_default_input_format = { 'chromium': 'netscape', @@ -64,8 +64,7 @@ def main(): output_format = 'quickmark' if not input_format: if not args.browser: - print("Must specify either browser or input format") - exit(1) + sys.exit("Must specify either browser or input format") input_format = browser_default_input_format[args.browser] import_function = {'netscape': import_netscape_bookmarks} |