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

This commit is contained in:
Tohka 2016-04-24 12:14:19 +03:00
parent ee595ae880
commit 41deb1c00f

View File

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