aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/track_status.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-06-18 06:16:04 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-06-18 06:16:04 +0300
commit2e887718268e7a5ae0b80402128a7adc6689734c (patch)
tree5098de6de785bc37ef20b3ed2445ae39160007eb /track_status.py
parentonline_duration.py: usage message update (diff)
downloadvk-scripts-2e887718268e7a5ae0b80402128a7adc6689734c.tar.gz
vk-scripts-2e887718268e7a5ae0b80402128a7adc6689734c.zip
bugfix
Diffstat (limited to 'track_status.py')
-rw-r--r--track_status.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/track_status.py b/track_status.py
index fa6dbec..c593afe 100644
--- a/track_status.py
+++ b/track_status.py
@@ -12,14 +12,13 @@ if __name__ == '__main__':
def natural_number(s):
x = int(s)
if x < 1:
- raise argparse.ArgumentTypeError()
+ raise argparse.ArgumentError()
return x
-
def output_format(s):
try:
return Format(s)
except ValueError:
- raise argparse.ArgumentTypeError()
+ raise argparse.ArgumentError()
parser = argparse.ArgumentParser(
description='Track when people go online/offline.')