Changeset View
Changeset View
Standalone View
Standalone View
comms/chirp/files/patch-chirp_drivers_anytone.py
- This file was added.
--- chirp/drivers/anytone.py.orig 2020-02-14 00:35:52 UTC | |||||
+++ chirp/drivers/anytone.py | |||||
@@ -177,7 +177,7 @@ def _echo_write(radio, data): | |||||
try: | |||||
radio.pipe.write(data) | |||||
radio.pipe.read(len(data)) | |||||
- except Exception, e: | |||||
+ except Exception as e: | |||||
LOG.error("Error writing to radio: %s" % e) | |||||
raise errors.RadioError("Unable to write to radio") | |||||
@@ -185,7 +185,7 @@ def _echo_write(radio, data): | |||||
def _read(radio, length): | |||||
try: | |||||
data = radio.pipe.read(length) | |||||
- except Exception, e: | |||||
+ except Exception as e: | |||||
LOG.error("Error reading from radio: %s" % e) | |||||
raise errors.RadioError("Unable to read from radio") | |||||