From 823e745c477473581821c0b54e98700923aa24d3 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Tue, 20 Mar 2012 22:38:57 -0700 Subject: [PATCH] Replace {0} with timeout_s in timeout exception message. Fixes GH-11 --- zerorpc/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerorpc/exceptions.py b/zerorpc/exceptions.py index 9efa158..781200e 100644 --- a/zerorpc/exceptions.py +++ b/zerorpc/exceptions.py @@ -30,7 +30,7 @@ class LostRemote(Exception): class TimeoutExpired(Exception): def __init__(self, timeout_s, when=None): - msg = 'timeout after {0}s' + msg = 'timeout after {0}s'.format(timeout_s) if when: msg = '{0}, when {1}'.format(msg, when) super(TimeoutExpired, self).__init__(msg)