[chirp_devel] [PATCH 1 of 2] Fix export error dialog. #395
# HG changeset patch # User Tom Hayward tom@tomh.us # Date 1357250078 28800 # Node ID 1537a1bd6a841337be714b9a2eb0bb962b706a8d # Parent 8beda1444865e247bfba48719f93154d0ecc2cbd Fix export error dialog. #395
diff -r 8beda1444865 -r 1537a1bd6a84 chirpui/editorset.py --- a/chirpui/editorset.py Wed Jan 02 22:12:24 2013 -0500 +++ b/chirpui/editorset.py Thu Jan 03 13:54:38 2013 -0800 @@ -318,7 +318,7 @@ common.log_exception() common.show_error(_("There was an error during " "export: {error}").format(error=e), - self) + self.parent_window) return
if count <= 0:
# HG changeset patch # User Tom Hayward tom@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
participants (2)
-
Dan Smith
-
Tom Hayward