summaryrefslogtreecommitdiff
path: root/scripts/importer.py
diff options
context:
space:
mode:
authorRyan Farley <ryan.farley@gmx.com>2017-10-17 14:47:45 -0500
committerRyan Farley <ryan.farley@gmx.com>2017-10-17 14:48:56 -0500
commitaf8a5c58da8dcac6ee8d6c821302b6092a07aaca (patch)
tree3a48f1079866dced572cf468f5b162605b52c3da /scripts/importer.py
parent73c5666ff9c607ff7ee013a5d537318ea0a7f71b (diff)
downloadqutebrowser-af8a5c58da8dcac6ee8d6c821302b6092a07aaca.tar.gz
qutebrowser-af8a5c58da8dcac6ee8d6c821302b6092a07aaca.zip
use sys.exit
Diffstat (limited to 'scripts/importer.py')
-rwxr-xr-xscripts/importer.py5
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}