diff --git a/fuelishCLI.py b/fuelishCLI.py index 6aa9cdcf..fb068b56 100644 --- a/fuelishCLI.py +++ b/fuelishCLI.py @@ -20,7 +20,7 @@ ###################################### -while(True): +while True: print("Welcome to Fuelish-CLI") print("Don't be foolish and know your prices") try: @@ -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!*") \ No newline at end of file + print("*Kuch to hua hai*") \ No newline at end of file