aboutsummaryrefslogtreecommitdiffstats
path: root/epy.py
diff options
context:
space:
mode:
authorbenadha <benawiadha@gmail.com>2019-10-25 22:12:09 +0700
committerbenadha <benawiadha@gmail.com>2019-10-25 22:12:09 +0700
commit13bb9cbf797486495e6cfe86ef8aa6b08713f303 (patch)
tree21a28f79ecf72d59779c295a978cb5af593e98a7 /epy.py
parentfe2cf0e993823928f6a82b7ac9428a3889374001 (diff)
downloadepy-13bb9cbf797486495e6cfe86ef8aa6b08713f303.tar.gz
Fixed argparsing.
Diffstat (limited to 'epy.py')
-rwxr-xr-xepy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/epy.py b/epy.py
index 8272351..90b786a 100755
--- a/epy.py
+++ b/epy.py
@@ -1225,6 +1225,7 @@ def main():
if len(args) == 1 and re.match(r"[0-9]+", args[0]) is not None:
try:
file = list(STATE["States"].keys())[int(args[0])-1]
+ xitmsg = 0
except IndexError:
xitmsg = "\nERROR: No matching file found in history."