... | @@ -667,7 +667,7 @@ import sys |
... | @@ -667,7 +667,7 @@ import sys |
|
def display_exception(func):
|
|
def display_exception(func):
|
|
def wrapper(*args):
|
|
def wrapper(*args):
|
|
try:
|
|
try:
|
|
func(*args)
|
|
return func(*args)
|
|
except Exception as ex:
|
|
except Exception as ex:
|
|
traceback.print_exception(*sys.exc_info())
|
|
traceback.print_exception(*sys.exc_info())
|
|
print(f"Unhandled exception was caught: '{ex}'")
|
|
print(f"Unhandled exception was caught: '{ex}'")
|
... | | ... | |