Commit 5bf90174 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

fix in return value for recv_msg

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent 2875dfcc
......@@ -137,7 +137,9 @@ class Session:
def group_recvmsg(self, nonblock = True):
env = self.recvmsg(nonblock)
if env == None:
return None
# return none twice to match normal return value
# (so caller won't get a type error on no data)
return (None, None)
msg = Message.from_wire(env["msg"].encode('ascii'))
return (msg, env)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment