Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def dec(f):
- @funcutils.wraps(f)
- def wrapper(self, *a, **k):
- try:
- return f(self, *a, **k)
- except:
- self.error = 'foo'
- return wrapper
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement