Explorar o código

Fixed faulty callback call

Taddeus Kroes %!s(int64=13) %!d(string=hai) anos
pai
achega
e169d77ab7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      message.py

+ 1 - 1
message.py

@@ -38,6 +38,6 @@ OPCODE_CLASS_MAP = {
 
 def create_message(opcode, payload):
     if opcode in OPCODE_CLASS_MAP:
-        return OPCODE_CLASS_MAP(payload)
+        return OPCODE_CLASS_MAP[opcode](payload)
 
     return Message(opcode, payload)