diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-18 06:16:04 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-18 06:16:04 +0300 |
commit | 2e887718268e7a5ae0b80402128a7adc6689734c (patch) | |
tree | 5098de6de785bc37ef20b3ed2445ae39160007eb /online_duration.py | |
parent | online_duration.py: usage message update (diff) | |
download | vk-scripts-2e887718268e7a5ae0b80402128a7adc6689734c.tar.gz vk-scripts-2e887718268e7a5ae0b80402128a7adc6689734c.zip |
bugfix
Diffstat (limited to 'online_duration.py')
-rw-r--r-- | online_duration.py | 6 |
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') |