Преглед изворни кода

Fixed faulty callback call

Taddeus Kroes пре 13 година
родитељ
комит
e169d77ab7
1 измењених фајлова са 1 додато и 1 уклоњено
  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)