diff options
| -rw-r--r-- | src/webvicli/webvicli/client.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/webvicli/webvicli/client.py b/src/webvicli/webvicli/client.py index 9ddb438..0d00ebc 100644 --- a/src/webvicli/webvicli/client.py +++ b/src/webvicli/webvicli/client.py @@ -317,8 +317,10 @@ class WVClient: return (status, errmsg) elif finished != -1: return (501, 'Unexpected handle (got %d, expected %d)' % (finished, handle)) + elif status != -1 or errmsg: + return (status, errmsg) else: - return (501, 'No active sockets') + return (502, 'empty fdset but handle is not ready!') readyread, readywrite, readyexc = select.select(readfds, writefds, excfds, 30.0) |
