summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
eb845e4)
When no error occured, log_error would not pass on the actual value
produced by the decorated function.
def log_error(func):
def show(*args, **kwargs):
try:
def log_error(func):
def show(*args, **kwargs):
try:
+ return func(*args, **kwargs)
except Exception, e:
import traceback
traceback.print_exc()
except Exception, e:
import traceback
traceback.print_exc()