aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/online_duration.py
diff options
context:
space:
mode:
Diffstat (limited to 'online_duration.py')
-rw-r--r--online_duration.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/online_duration.py b/online_duration.py
index 317b987..637b0ec 100644
--- a/online_duration.py
+++ b/online_duration.py
@@ -294,17 +294,17 @@ if __name__ == '__main__':
try:
return Grouping(s)
except ValueError:
- raise argparse.ArgumentTypeError()
+ raise argparse.ArgumentError()
def database_format(s):
try:
return DatabaseFormat(s)
except ValueError:
- raise argparse.ArgumentTypeError()
+ raise argparse.ArgumentError()
def output_format(s):
try:
return OutputFormat(s)
except ValueError:
- raise argparse.ArgumentTypeError()
+ raise argparse.ArgumentError()
parser.add_argument('input', type=argparse.FileType('r'),
help='database path')