Skip to content

Commit

Permalink
Unknown command fixed so program doesn't quit
Browse files Browse the repository at this point in the history
  • Loading branch information
nkphysics committed Dec 23, 2021
1 parent 025dfc5 commit 2fde53e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions autoNICER.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,11 @@ def command_center(self):
elif enter[0] == "rm":
self.rm_obs(enter[1])
else:
self.sel_obs(enter[0])

try:
if int(enter[0]) > (10**8):
self.sel_obs(enter[0])
except:
print("Unknown Entry")

def nicer_compress(self):
# compresses .evt files into .tar.gz formats
Expand Down

0 comments on commit 2fde53e

Please sign in to comment.