2019-12-02 13:50:23 +05:30
|
|
|
import sys
|
|
|
|
|
import traceback
|
|
|
|
|
import json
|
|
|
|
|
import inspect
|
|
|
|
|
|
2020-02-04 13:23:59 +04:00
|
|
|
__python_exception__ = ""
|
2019-12-02 13:50:23 +05:30
|
|
|
try:
|
|
|
|
|
pass
|
|
|
|
|
sys.stdout.flush()
|
|
|
|
|
sys.stderr.flush()
|
|
|
|
|
except Exception as ex:
|
2020-02-04 13:23:59 +04:00
|
|
|
__python_exception__ = ex
|
2019-12-02 13:50:23 +05:30
|
|
|
try:
|
|
|
|
|
exc_info = sys.exc_info()
|
|
|
|
|
finally:
|
|
|
|
|
print(ex)
|
|
|
|
|
traceback.print_exception(*exc_info)
|
|
|
|
|
sys.stdout.flush()
|
|
|
|
|
sys.stderr.flush()
|
|
|
|
|
|