Commit 09009ee6 authored by ulrich_y's avatar ulrich_y
Browse files

Fixed error handling

parent 157263fd
......@@ -17,10 +17,7 @@ def main():
ffilter.create_parser(subparsers)
parsed = parser.parse_args()
try:
parsed.func(parsed)
except:
parser.error("too few arguments")
parsed.func(parsed)
if __name__ == '__main__':
......
......@@ -51,7 +51,7 @@ def dup_main(parsed):
if opt:
return False
else:
raise IOError("Aborting. This was not negotiable")
raise argparse.ArgumentError("Aborting. This was not negotiable")
else:
return True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment