GraphCommonsException includes deprecated Python 2 unicode() call
gregoryfoster opened this issue · 0 comments
gregoryfoster commented
if isinstance(message, unicode):
message = message.encode("utf-8") # Otherwise, it will not be printed.
In Python 3 environments, encountering a GraphCommonsException
will generate a secondary uncaught NameError: name 'unicode' is not defined
.