Verbose error message
This commit is contained in:
parent
af72fbbbb2
commit
a80ac32737
2
main.py
2
main.py
@ -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…
x
Reference in New Issue
Block a user