[chirp_devel] [PATCH 2 of 2] Handle get_memory() errors during import/export. Fixes #395
Tom Hayward
Thu Jan 3 13:55:57 PST 2013
# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1357250081 28800
# Node ID a91836d4907548e3d543d04f8b8c5eaf12ef111b
# Parent 1537a1bd6a841337be714b9a2eb0bb962b706a8d
Handle get_memory() errors during import/export. Fixes #395
diff -r 1537a1bd6a84 -r a91836d49075 chirpui/importdialog.py
--- a/chirpui/importdialog.py Thu Jan 03 13:54:38 2013 -0800
+++ b/chirpui/importdialog.py Thu Jan 03 13:54:41 2013 -0800
@@ -525,6 +525,18 @@
mem = self.src_radio.get_memory(i)
except errors.InvalidMemoryLocation, e:
continue
+ except Exception, e:
+ self.__store.append(row=(False,
+ i,
+ i,
+ "ERROR",
+ chirp_common.format_freq(0),
+ "",
+ False,
+ str(e),
+ ))
+ self.record_use_of(i)
+ continue
if mem.empty:
continue
More information about the chirp_devel
mailing list