Verbose error message

master
Cole Deck 4 years ago
parent af72fbbbb2
commit a80ac32737

@ -32,7 +32,7 @@ def baseConverter(userInput, numberBase):
try: try:
decimalNum = int(userInput,numberBase) # First attempt to get the number in decimal. decimalNum = int(userInput,numberBase) # First attempt to get the number in decimal.
except: except:
print("bad base") print("Number entered does not match the base!")
return return
outputText = "" outputText = ""

Loading…
Cancel
Save