From 0fa598af5f763d308ff1e2faef45416602cdc809 Mon Sep 17 00:00:00 2001 From: Elad Alfassa Date: Tue, 16 Feb 2016 01:31:30 +0200 Subject: [PATCH] core: Fix print in handle_error when reaching the exception limit Fixes issue #1025 --- sopel/irc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sopel/irc.py b/sopel/irc.py index 0d22c87247..e87aac6aae 100644 --- a/sopel/irc.py +++ b/sopel/irc.py @@ -399,7 +399,7 @@ def handle_error(self): logfile.close() if self.error_count > 10: if (datetime.now() - self.last_error_timestamp).seconds < 5: - print >> sys.stderr, "Too many errors, can't continue" + stderr("Too many errors, can't continue") os._exit(1) self.last_error_timestamp = datetime.now() self.error_count = self.error_count + 1