Fix dl_cleanup.py
authorMichael Büsch <mb@bu3sch.de>
Tue, 10 Aug 2010 15:08:02 +0000 (15:08 +0000)
committerMichael Büsch <mb@bu3sch.de>
Tue, 10 Aug 2010 15:08:02 +0000 (15:08 +0000)
SVN-Revision: 22578

scripts/dl_cleanup.py

index 48f587de5274cf5e314b72b9b1544185a9fd8671..67ccbda914eec08c1aee20f7fed9069f077fd4c4 100755 (executable)
@@ -147,7 +147,8 @@ def main(argv):
                        "hdBw:",
                        [ "help", "dry-run", "show-blacklist", "whitelist=", ])
                if len(args) != 1:
-                       raise getopt.GetoptError()
+                       usage()
+                       return 1
        except getopt.GetoptError:
                usage()
                return 1