Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ffb903

Browse files
committed
Merge pull request 0rpc#12 from msabramo/issue-11
Replace {0} with timeout_s in timeout exception message.
2 parents 93dfea9 + 823e745 commit 3ffb903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zerorpc/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class LostRemote(Exception):
3030
class TimeoutExpired(Exception):
3131

3232
def __init__(self, timeout_s, when=None):
33-
msg = 'timeout after {0}s'
33+
msg = 'timeout after {0}s'.format(timeout_s)
3434
if when:
3535
msg = '{0}, when {1}'.format(msg, when)
3636
super(TimeoutExpired, self).__init__(msg)

0 commit comments

Comments
 (0)