Can use print with non string

This commit is contained in:
nemunaire 2015-06-04 06:46:39 +02:00
commit c86031ea32

View file

@ -365,7 +365,7 @@ class Bot(threading.Thread):
def prnt(*args):
print("[%s]" % module_name, *args)
if hasattr(module, "logger"):
module.logger.info(" ".join(args))
module.logger.info(" ".join([str(s) for s in args]))
module.print = prnt
# Create module context