From 3cf3324209d1c581750556c970597dafbd1e4550 Mon Sep 17 00:00:00 2001 From: Bjoern Kerler Date: Wed, 23 Mar 2022 12:45:46 +0100 Subject: [PATCH] Update firehose.py --- edlclient/Library/firehose.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/edlclient/Library/firehose.py b/edlclient/Library/firehose.py index 05bafbc..92940e2 100755 --- a/edlclient/Library/firehose.py +++ b/edlclient/Library/firehose.py @@ -848,8 +848,12 @@ class firehose(metaclass=LogBase): rsp = self.xmlsend(connectcmd) if not rsp.resp: if rsp.error=="": - if "MemoryName" in rsp.data: - self.cfg.MemoryName = rsp.data["MemoryName"] + try: + if "MemoryName" in rsp.data: + self.cfg.MemoryName = rsp.data["MemoryName"] + except TypeError: + self.warning("!DEBUG! rsp.data: '%s'" % (rsp.data,)) + return self.configure(lvl + 1) if "MaxPayloadSizeFromTargetInBytes" in rsp.data: self.cfg.MaxPayloadSizeFromTargetInBytes = int(rsp.data["MaxPayloadSizeFromTargetInBytes"]) if "MaxPayloadSizeToTargetInBytes" in rsp.data: