Skip to content

Commit

Permalink
Merge branch 'refactoring/ioerror-drop'
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Mar 23, 2024
2 parents e8471f4 + f822e33 commit 8003361
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cheroot/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1729,9 +1729,7 @@ def safe_start(self):
"""Run the server forever, and stop it cleanly on exit."""
try:
self.start()
except (KeyboardInterrupt, IOError):
# The time.sleep call might raise
# "IOError: [Errno 4] Interrupted function call" on KBInt.
except KeyboardInterrupt:
self.error_log('Keyboard Interrupt: shutting down')
self.stop()
raise
Expand Down

0 comments on commit 8003361

Please sign in to comment.