Skip to content

Commit

Permalink
core: Fix print in handle_error when reaching the exception limit
Browse files Browse the repository at this point in the history
Fixes issue #1025
  • Loading branch information
Elad Alfassa committed Feb 15, 2016
1 parent 6b3461d commit 0fa598a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sopel/irc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0fa598a

Please sign in to comment.