Cast command to str when calling show_debug_msg

Throws exception otherwise.
This commit is contained in:
Alexander Block 2017-12-21 19:17:59 +01:00
parent 6dc4a13851
commit 2924b34401

View File

@ -1298,7 +1298,7 @@ class NodeConn(asyncore.dispatcher):
t.deserialize(f)
self.got_message(t)
else:
self.show_debug_msg("Unknown command: '" + command + "' " +
self.show_debug_msg("Unknown command: '" + str(command) + "' " +
repr(msg))
except Exception as e:
print('got_data:', repr(e))