Commits

Ali Gholami Rudi  committed f47f744

decorators: propagate returned value from _exception_handler()

  • Participants
  • Parent commits 3a0637b

Comments (0)

Files changed (1)

File ropemode/decorators.py

 def _exception_handler(func):
     def newfunc(*args, **kwds):
         try:
-            func(*args, **kwds)
+            return func(*args, **kwds)
         except exceptions.RopeError, e:
             short = None
             if isinstance(e, input_exceptions):