logging EventManager errors with EventManger is a bad idea
This commit is contained in:
parent
6615dda7a1
commit
ac7b5c14f4
1 changed files with 3 additions and 3 deletions
|
@ -74,9 +74,9 @@ class EventHook(object):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
# TODO don't make this an event call. can lead to error cycles!
|
# TODO don't make this an event call. can lead to error cycles!
|
||||||
self.bot.events.on("log").on("error").call(
|
#self.bot.events.on("log").on("error").call(
|
||||||
message="Failed to call event callback",
|
# message="Failed to call event callback",
|
||||||
data=traceback.format_exc())
|
# data=traceback.format_exc())
|
||||||
called += 1
|
called += 1
|
||||||
return returns
|
return returns
|
||||||
def get_child(self, child_name):
|
def get_child(self, child_name):
|
||||||
|
|
Loading…
Reference in a new issue