Explorar o código

Pop result after post-execution and return possibly changed value

almahmoud %!s(int64=7) %!d(string=hai) anos
pai
achega
96fb82e59c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cloudbridge/cloud/base/events.py

+ 1 - 1
cloudbridge/cloud/base/events.py

@@ -130,7 +130,7 @@ class ExecutingEventHandler(InterceptingEventHandler):
         if next_handler:
             event_args['result'] = result
             next_handler.invoke(event_args, *args, **kwargs)
-            event_args.pop['result']
+            result = event_args.pop['result']
         return result