-
-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Made it so Sopel doesn't automatically message who triggered an error. #1071
Changes from 1 commit
2d39c60
0134b32
3375305
4ab09b5
a5d8a75
c1d4a1a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -367,12 +367,18 @@ def error(self, trigger=None): | |
except Exception as e: | ||
stderr("Could not save full traceback!") | ||
LOGGER.error("Could not save traceback from %s to file: %s", trigger.sender, str(e)) | ||
|
||
if trigger and trigger.sender is not None: | ||
self.msg(trigger.sender, signature) | ||
|
||
# Errors will pass silently otherwise, not sure how to handle this | ||
if trigger and self.config.core.message_logs and self.config.core.logging_channel is not None: | ||
self.msg(self.config.logging_channel, signature) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same thing here, this should be done via |
||
if self.config.core.message_logs_sender: | ||
self.msg(trigger.sender,signature) | ||
except Exception as e: | ||
if trigger and trigger.sender is not None: | ||
self.msg(trigger.sender, "Got an error.") | ||
if trigger: | ||
if self.config.core.message_logs and self.config.core.logging_channel is not None: | ||
self.msg(self.config.core.logging_channel,"Got an error.") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need for this line, |
||
if self.config.core.message_logs_sender: | ||
self.msg(trigger.sender,"Got an error.") | ||
LOGGER.error("Exception from %s: %s", trigger.sender, str(e)) | ||
|
||
def handle_error(self): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't appear to be used at all.