diff options
| author | Matthew Poletiek <matthew.poletiek@gmail.com> | 2020-12-10 20:42:18 -0600 |
|---|---|---|
| committer | Matthew Poletiek <matthew.poletiek@gmail.com> | 2020-12-10 20:42:18 -0600 |
| commit | f93c47d45e071791a705cdfa1ec68c4c1e4c3bcd (patch) | |
| tree | 2468640c3c2d9870a416ddc2fe35d8f6bf5b7418 | |
| parent | 199c6381610639f65358aec2cf20f286c08aa882 (diff) | |
| download | chirp-f93c47d45e071791a705cdfa1ec68c4c1e4c3bcd.tar.gz chirp-f93c47d45e071791a705cdfa1ec68c4c1e4c3bcd.tar.xz | |
driver syntax fixes
| -rw-r--r-- | chirp/drivers/__pycache__/ap510.cpython-38.pyc | bin | 0 -> 20734 bytes | |||
| -rw-r--r-- | chirp/drivers/__pycache__/ft1d.cpython-38.pyc | bin | 0 -> 51869 bytes | |||
| -rw-r--r-- | chirp/drivers/ap510.py | 4 | ||||
| -rw-r--r-- | chirp/drivers/ft1d.py | 2 |
4 files changed, 3 insertions, 3 deletions
diff --git a/chirp/drivers/__pycache__/ap510.cpython-38.pyc b/chirp/drivers/__pycache__/ap510.cpython-38.pyc Binary files differnew file mode 100644 index 0000000..b08a8cc --- /dev/null +++ b/chirp/drivers/__pycache__/ap510.cpython-38.pyc diff --git a/chirp/drivers/__pycache__/ft1d.cpython-38.pyc b/chirp/drivers/__pycache__/ft1d.cpython-38.pyc Binary files differnew file mode 100644 index 0000000..50e06ef --- /dev/null +++ b/chirp/drivers/__pycache__/ft1d.cpython-38.pyc diff --git a/chirp/drivers/ap510.py b/chirp/drivers/ap510.py index 36df4c0..07019b6 100644 --- a/chirp/drivers/ap510.py +++ b/chirp/drivers/ap510.py @@ -380,7 +380,7 @@ class AP510Radio(chirp_common.CloneModeRadio): data = download(self) except errors.RadioError: raise - except Exception, e: + except (Exception, e): raise errors.RadioError("Failed to communicate with radio: %s" % e) # _mmap isn't a Chirp MemoryMap, but since AP510Memory implements @@ -398,7 +398,7 @@ class AP510Radio(chirp_common.CloneModeRadio): upload(self) except errors.RadioError: raise - except Exception, e: + except (Exception, e): raise errors.RadioError("Failed to communicate with radio: %s" % e) def load_mmap(self, filename): diff --git a/chirp/drivers/ft1d.py b/chirp/drivers/ft1d.py index 06a20ed..2cae7ba 100644 --- a/chirp/drivers/ft1d.py +++ b/chirp/drivers/ft1d.py @@ -1890,7 +1890,7 @@ class FT1Radio(yaesu_clone.YaesuCloneModeRadio): except AttributeError as e: LOG.error("Setting %s is not in the memory map: %s" % (element.get_name(), e)) - except Exception, e: + except (Exception, e): LOG.debug(element.get_name()) raise |
