# HG changeset patch # User Rick DeWitt # Date 1619621434 25200 # Wed Apr 28 07:50:34 2021 -0700 # Node ID b04ba05b7b646e144af4f074663941ca122dc4ed # Parent 42f91f6eac5cb52122b59971a2faf13eea3dfe30 [icomciv.py] Fix mem.duplex setting when no duplex attribute. #9025 diff -r 42f91f6eac5c -r b04ba05b7b64 chirp/drivers/icomciv.py --- a/chirp/drivers/icomciv.py Tue Apr 27 15:23:46 2021 -0700 +++ b/chirp/drivers/icomciv.py Wed Apr 28 07:50:34 2021 -0700 @@ -1,4 +1,4 @@ -# Latest update: March, 2021 RJ DeWitt added IC-7300 +# Latest update: April, 2021 Add hasattr test at line 564 import struct import logging from chirp.drivers import icf @@ -561,7 +561,8 @@ mem.duplex = self._rf.valid_duplexes[memobj.duplex] if self._rf.can_odd_split and memobj.spl: - mem.duplex = "split" + if hasattr(memobj, "duplex"): + mem.duplex = "split" mem.offset = int(memobj.freq_tx) mem.immutable = [] elif hasattr(memobj, "duplexOffset"):