Open tacittech opened 5 years ago
the following python test code runs correctly:
try: 0 / 0 except Exception: import sys errorX = sys.exc_info()[0] print "\nError:%s " % (errorX)
when minified it looks like this:
try: m=Exception 0/0 except m: import sys X=sys.exc_info()[0] print "\nError:%s "%(X)
trying to run it (minified):
[vagrant@localhost minified]$ python X1.py File "X1.py", line 2 m=Exception ^ IndentationError: expected an indented block [vagrant@localhost minified]$ X1.py -bash: X1.py: command not found [vagrant@localhost minified]$
the following python test code runs correctly:
try: 0 / 0 except Exception: import sys errorX = sys.exc_info()[0] print "\nError:%s " % (errorX)
when minified it looks like this:
try: m=Exception 0/0 except m: import sys X=sys.exc_info()[0] print "\nError:%s "%(X)
Created by pyminifier (https://github.com/liftoff/pyminifier)
trying to run it (minified):
[vagrant@localhost minified]$ python X1.py File "X1.py", line 2 m=Exception ^ IndentationError: expected an indented block [vagrant@localhost minified]$ X1.py -bash: X1.py: command not found [vagrant@localhost minified]$