Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Booth committed Feb 4, 2021
1 parent 3f73b54 commit 492e738
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aiorpcx/curio.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def __init__(self, secs, *args):
self.secs = secs

def __str__(self):
return f'task timed out after {self.args[0]}s'
return f'task timed out after {self.secs}s'


class TimeoutCancellationError(CancelledError):
Expand Down Expand Up @@ -291,7 +291,6 @@ def __init__(self, deadline, *, ignore=False, absolute=False):
self._ignore = ignore
self._absolute = absolute
self._secs = None
self._deadline = None
self._task = None
self.expired = False

Expand Down

0 comments on commit 492e738

Please sign in to comment.