Permalink
Browse files

empty result in cmdOnlineWithCounters converted to dictionary, to pre…

…vent errors in cmdOnline
  • Loading branch information...
1 parent 4dcfe3d commit 1e021fa38ade0878329642df6c0b3142d47179a5 @grunichev grunichev committed Nov 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 api/python/Dklab/realplexor.py
@@ -90,7 +90,7 @@ def cmdOnlineWithCounters(self, idPrefixes=None):
# Send command.
resp = self._sendCmd("online" + (" " + " ".join(idPrefixes) if idPrefixes else ""))
if not resp.strip():
- return []
+ return {}
# Parse the result and trim namespace.
result = {}
for line in resp.split("\n"):

0 comments on commit 1e021fa

Please sign in to comment.