Ver Fonte

Pop result after post-execution and return possibly changed value

almahmoud há 7 anos atrás
pai
commit
96fb82e59c
1 ficheiros alterados com 1 adições e 1 exclusões
  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