diff options
-rw-r--r-- | src/waitress/task.py | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/waitress/task.py b/src/waitress/task.py index 779f01e..1bcc540 100644 --- a/src/waitress/task.py +++ b/src/waitress/task.py @@ -165,16 +165,13 @@ class Task: def service(self): try: - try: - self.start() - self.execute() - self.finish() - except OSError: - self.close_on_finish = True - if self.channel.adj.log_socket_errors: - raise - finally: - pass + self.start() + self.execute() + self.finish() + except OSError: + self.close_on_finish = True + if self.channel.adj.log_socket_errors: + raise @property def has_body(self): |