summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAntti Ajanki <antti.ajanki@iki.fi>2011-06-16 21:20:38 +0300
committerAntti Ajanki <antti.ajanki@iki.fi>2011-06-16 21:20:38 +0300
commit51fc9fb5e0044d077c87d6483f52a034ab3313da (patch)
treea78c97ef3c23228f37c9df538592d115fa9996e7 /src
parent1c61497f41805ec4ab555dd572adaf3707a24a27 (diff)
downloadvdr-plugin-webvideo-51fc9fb5e0044d077c87d6483f52a034ab3313da.tar.gz
vdr-plugin-webvideo-51fc9fb5e0044d077c87d6483f52a034ab3313da.tar.bz2
Show the real error message
Diffstat (limited to 'src')
-rw-r--r--src/webvicli/webvicli/client.py4
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)