Changeset View
Changeset View
Standalone View
Standalone View
comms/chirp/files/patch-chirp_drivers_th7800.py
- This file was added.
--- chirp/drivers/th7800.py.orig 2020-02-14 00:35:52 UTC | |||||
+++ chirp/drivers/th7800.py | |||||
@@ -536,7 +536,7 @@ class TYTTH7800Base(chirp_common.Radio): | |||||
LOG.debug("Setting %s(%s) <= %s" % (setting, oldval, newval)) | |||||
setattr(_settings, setting, newval) | |||||
- except Exception, e: | |||||
+ except Exception as e: | |||||
LOG.debug(element.get_name()) | |||||
raise | |||||
@@ -726,7 +726,7 @@ class TYTTH7800Radio(TYTTH7800Base, chirp_common.Clone | |||||
def sync_in(self): | |||||
try: | |||||
self._mmap = _download(self) | |||||
- except Exception, e: | |||||
+ except Exception as e: | |||||
raise errors.RadioError( | |||||
"Failed to communicate with the radio: %s" % e) | |||||
self.process_mmap() | |||||
@@ -734,6 +734,6 @@ class TYTTH7800Radio(TYTTH7800Base, chirp_common.Clone | |||||
def sync_out(self): | |||||
try: | |||||
_upload(self) | |||||
- except Exception, e: | |||||
+ except Exception as e: | |||||
raise errors.RadioError( | |||||
"Failed to communicate with the radio: %s" % e) |