Changeset View
Changeset View
Standalone View
Standalone View
comms/chirp/files/patch-chirp_drivers_wouxun.py
- This file was added.
--- chirp/drivers/wouxun.py.orig 2020-02-14 00:35:52 UTC | |||||
+++ chirp/drivers/wouxun.py | |||||
@@ -274,7 +274,7 @@ class KGUVD1PRadio(chirp_common.CloneModeRadio, | |||||
return do_download(self, 0x0000, 0x2000, 0x0040) | |||||
except errors.RadioError: | |||||
raise | |||||
- except Exception, e: | |||||
+ except Exception as e: | |||||
raise errors.RadioError("Failed to communicate with radio: %s" % e) | |||||
def _upload(self): | |||||
@@ -285,7 +285,7 @@ class KGUVD1PRadio(chirp_common.CloneModeRadio, | |||||
return do_upload(self, 0x0000, 0x2000, 0x0010) | |||||
except errors.RadioError: | |||||
raise | |||||
- except Exception, e: | |||||
+ except Exception as e: | |||||
raise errors.RadioError("Failed to communicate with radio: %s" % e) | |||||
def sync_in(self): | |||||
@@ -658,7 +658,7 @@ class KGUVD1PRadio(chirp_common.CloneModeRadio, | |||||
else: | |||||
LOG.debug("Setting %s = %s" % (setting, element.value)) | |||||
setattr(obj, setting, element.value) | |||||
- except Exception, e: | |||||
+ except Exception as e: | |||||
LOG.debug(element.get_name()) | |||||
raise | |||||
@@ -680,7 +680,7 @@ class KGUVD1PRadio(chirp_common.CloneModeRadio, | |||||
else: | |||||
setting = self._memobj.fm_presets_1 | |||||
setting[index] = value | |||||
- except Exception, e: | |||||
+ except Exception as e: | |||||
LOG.debug(element.get_name()) | |||||
raise | |||||
@@ -690,7 +690,7 @@ class KGUVD1PRadio(chirp_common.CloneModeRadio, | |||||
setattr(self._memobj.freq_ranges, | |||||
element.get_name(), | |||||
encode_freq(int(element.value))) | |||||
- except Exception, e: | |||||
+ except Exception as e: | |||||
LOG.debug(element.get_name()) | |||||
raise | |||||
@@ -1397,7 +1397,7 @@ class KGUV6DRadio(KGUVD1PRadio): | |||||
else: | |||||
LOG.debug("Setting %s = %s" % (setting, element.value)) | |||||
setattr(obj, setting, element.value) | |||||
- except Exception, e: | |||||
+ except Exception as e: | |||||
LOG.debug(element.get_name()) | |||||
raise | |||||
@@ -1419,7 +1419,7 @@ class KGUV6DRadio(KGUVD1PRadio): | |||||
else: | |||||
setting = self._memobj.fm_presets_1 | |||||
setting[index] = value | |||||
- except Exception, e: | |||||
+ except Exception as e: | |||||
LOG.debug(element.get_name()) | |||||
raise | |||||