Fix Message.is_response()

This commit is contained in:
Pavel Minaev 2019-07-22 12:56:15 -07:00 committed by Pavel Minaev
parent e87025d664
commit b08e8e2233

View file

@ -351,7 +351,7 @@ class Message(object):
def is_response(self, command=None):
if not isinstance(self, Response):
return False
return command is None or self.command == command
return command is None or self.request.command == command
@staticmethod
def raise_error(*args, **kwargs):