Taddeus Kroes 13 лет назад
Родитель
Сommit
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)