X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fxerxes.git;a=blobdiff_plain;f=tools%2Fmisc.py;h=ba84f05e87141c0be4a9e2efd14bdf1d906dbc1d;hp=1259ab7d706284e6abc2164e79d6d90cdbe50143;hb=4bd2ee34c818b499888d3f0bb52ffbf1eb58580b;hpb=eb845e4ffb2eb95d9f2e4375f921fa52e10e0fb7 diff --git a/tools/misc.py b/tools/misc.py index 1259ab7..ba84f05 100644 --- a/tools/misc.py +++ b/tools/misc.py @@ -22,7 +22,7 @@ prints it to stdout and raises it again. def log_error(func): def show(*args, **kwargs): try: - func(*args, **kwargs) + return func(*args, **kwargs) except Exception, e: import traceback traceback.print_exc()