Skip to content

Commit

Permalink
added keyboard interrupts to CLI
Browse files Browse the repository at this point in the history
(cherry picked from commit 7653489)
  • Loading branch information
Asvin1 authored and actuallyaryaman committed Feb 16, 2023
1 parent e32816f commit b57c912
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions fuelishCLI.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

######################################

while(True):
while True:
print("Welcome to Fuelish-CLI")
print("Don't be foolish and know your prices")
try:
Expand Down Expand Up @@ -55,9 +55,11 @@
elif fuel == "d":
l.append([dic["State"][i].capitalize(),dic["Price(D)"][i],dic["Change(D)"][i]])
if(len(l)==0):
print("*Incorrect State*")
print("*Skill issue. Know about your country!*")
else:
l.insert(0,["State","Price","Change"])
tablemaker(l)
except KeyboardInterrupt:
break
except:
print("*Something went wrong!*")
print("*Kuch to hua hai*")

0 comments on commit b57c912

Please sign in to comment.