--- 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