Open benoitbryon opened 9 years ago
See https://github.com/zeekay/decorum/blob/0.5.3/decorum/decorum.py#L46 What about improving this code by checking self._wrapped first?
self._wrapped
Something like:
if self._wrapped is None: if f is None: raise Exception('Need something to decorate!') return self.wraps(f) else: return self._wrapped(*args, **kwargs) # Actually run the decorated function.
See https://github.com/zeekay/decorum/blob/0.5.3/decorum/decorum.py#L46 What about improving this code by checking
self._wrapped
first?Something like: