Skip to content

Commit 452ec29

Browse files
authored
Update main.py
1 parent d09b3ce commit 452ec29

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ def autotype(value):
166166
except SystemExit:
167167
sep()
168168
print("---ESECUZIONE TERMINATA---")
169+
except SyntaxError, err:
170+
sep()
171+
print("ERRORE DI SINTASSI a %s (%s-%s): %s" % (err.filename, err.lineno, err.offset, err.text)
169172
#ARGOMENTO -file e -output DA CONSOLE
170173
if ('-file' in sys.argv) or ('-output' in sys.argv):
171174
break

0 commit comments

Comments
 (0)