logging EventManager errors with EventManger is a bad idea

This commit is contained in:
jesopo 2017-01-27 21:36:54 +00:00
parent 6615dda7a1
commit ac7b5c14f4
No known key found for this signature in database
GPG key ID: 0BBDEB2AEFCFFCB3

View file

@ -74,9 +74,9 @@ class EventHook(object):
except Exception as e:
traceback.print_exc()
# TODO don't make this an event call. can lead to error cycles!
self.bot.events.on("log").on("error").call(
message="Failed to call event callback",
data=traceback.format_exc())
#self.bot.events.on("log").on("error").call(
# message="Failed to call event callback",
# data=traceback.format_exc())
called += 1
return returns
def get_child(self, child_name):