diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-06-07 16:16:27 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-06-07 16:16:27 +0200 |
commit | 0ca7dbe76738095c3597a0c30f8f0682ec0e48e4 (patch) | |
tree | 5ce382e2775204eac1a58780896088b57f2d0880 | |
parent | 00033eefbb3f0f38711fd9788d9d062f6f78ec7f (diff) | |
download | kittystore-0ca7dbe76738095c3597a0c30f8f0682ec0e48e4.tar.gz kittystore-0ca7dbe76738095c3597a0c30f8f0682ec0e48e4.tar.xz kittystore-0ca7dbe76738095c3597a0c30f8f0682ec0e48e4.zip |
Fix typos in the scripts
-rw-r--r-- | kittystore/import.py | 3 | ||||
-rw-r--r-- | kittystore/scripts.py | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/kittystore/import.py b/kittystore/import.py index c296c42..ab78dd6 100644 --- a/kittystore/import.py +++ b/kittystore/import.py @@ -241,9 +241,6 @@ def parse_args(): help="do not skip duplicate emails (same Message-ID header), " "import them with a different Message-ID") opts, args = parser.parse_args() - if opts.store is None: - parser.error("the store URL is missing (eg: " - "sqlite:///kittystore.sqlite)") if opts.list_name is None: parser.error("the list name must be given on the command-line.") if not args: diff --git a/kittystore/scripts.py b/kittystore/scripts.py index 19fac23..3257b2c 100644 --- a/kittystore/scripts.py +++ b/kittystore/scripts.py @@ -66,8 +66,6 @@ def get_store_from_options(opts): "module (Python path to the settings module)") if opts.search_index is None: opts.search_index = getattr(django_settings, "KITTYSTORE_SEARCH_INDEX", None) - if args: - raise StoreFromOptionsError("no arguments allowed.") return get_store(store_url, search=opts.search_index, debug=opts.debug) @@ -88,6 +86,8 @@ def updatedb(): parser.add_option("-d", "--debug", action="store_true", help="show SQL queries") opts, args = parser.parse_args() + if args: + parser.error("no arguments allowed.") print 'Upgrading the database schema and populating ' \ 'the search index if necessary...' try: |