Changeset View
Changeset View
Standalone View
Standalone View
comms/chirp/files/patch-chirp_drivers_ft90.py
- This file was added.
--- chirp/drivers/ft90.py.orig 2020-02-14 00:35:52 UTC | |||||
+++ chirp/drivers/ft90.py | |||||
@@ -332,7 +332,7 @@ struct { | |||||
self._mmap = self._clone_in() | |||||
except errors.RadioError: | |||||
raise | |||||
- except Exception, e: | |||||
+ except Exception as e: | |||||
trace = traceback.format_exc() | |||||
raise errors.RadioError( | |||||
"Failed to communicate with radio: %s" % trace) | |||||
@@ -343,7 +343,7 @@ struct { | |||||
self._clone_out() | |||||
except errors.RadioError: | |||||
raise | |||||
- except Exception, e: | |||||
+ except Exception as e: | |||||
trace = traceback.format_exc() | |||||
raise errors.RadioError( | |||||
"Failed to communicate with radio: %s" % trace) | |||||
@@ -670,6 +670,6 @@ struct { | |||||
newval = self._dtmf2bbcd(newval) | |||||
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 |