Skip to content

Commit

Permalink
Make sure the read_only value we send is a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Oct 21, 2016
1 parent e3be707 commit c8bbe82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ZEO/asyncio/client.py
Expand Up @@ -180,7 +180,8 @@ def finish_connect(self, protocol_version):
try:
server_tid = yield self.fut(
'register', self.storage_key,
self.read_only if self.read_only is not Fallback else False,
bool(self.read_only if self.read_only is not Fallback
else False),
*credentials)
except ZODB.POSException.ReadOnlyError:
if self.read_only is Fallback:
Expand Down

0 comments on commit c8bbe82

Please sign in to comment.