pygpibtoolkit/prologix.py

changeset 64
624157f78b77
parent 56
9573558f9191
child 66
2a97995628a3
--- a/pygpibtoolkit/prologix.py	Tue Aug 19 22:21:44 2008 +0200
+++ b/pygpibtoolkit/prologix.py	Tue Aug 19 22:47:16 2008 +0200
@@ -137,7 +137,7 @@
                 dico[add] = int(ret)
             time.sleep(0.3) # need to wait at least 150ms (not enough on prologix)
         self.set_address(self._address)
-        if only_one:
+        if only_one and dico:
             return dico.values()[0]
         return dico
     

mercurial