[chirp_devel] [PATCH] [RadioReference] Fix Chirp crash on empty scName attribute. #881
Tom Hayward
Thu Aug 11 17:51:08 PDT 2016
# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1470963047 25200
# Thu Aug 11 17:50:47 2016 -0700
# Node ID 5f9ca43e4291a4631fa7f1a1ee18fe90567cc1c8
# Parent ba17605533ea0d2638e5b08750565de409e671c9
[RadioReference] Fix Chirp crash on empty scName attribute. #881
diff -r ba17605533ea -r 5f9ca43e4291 chirp/radioreference.py
--- a/chirp/radioreference.py Tue Jul 12 22:28:17 2016 -0400
+++ b/chirp/radioreference.py Thu Aug 11 17:50:47 2016 -0700
@@ -98,7 +98,10 @@
for cat in agency.cats:
LOG.debug("Fetching category:", cat.cName)
for subcat in cat.subcats:
- LOG.debug("\t", subcat.scName)
+ try:
+ LOG.debug("\t", subcat.scName)
+ except AttributeError:
+ pass
result = self._client.service.getSubcatFreqs(subcat.scid,
self._auth)
self._freqs += result
More information about the chirp_devel
mailing list