Browse Source

Fix error "TypeError: 'NoneType' object is not iterable"

Tohka 9 years ago
parent
commit
41deb1c00f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/fsm/FSM.py

+ 1 - 1
direct/src/fsm/FSM.py

@@ -310,7 +310,7 @@ class FSM(DirectObject):
                 self.name, request, str(args)[1:]))
 
             filter = self.getCurrentFilter()
-            result = list(filter(request, args))
+            result = filter(request, args)
             if result:
                 if isinstance(result, str):
                     # If the return value is a string, it's just the name