# HG changeset patch # User Dan Smith dsmith@danplanet.com # Date 1331672826 25200 # Node ID 8eb9ce5692f71b761379db7a40541f1296c1bc81 # Parent 6f7a8a5b277fe99dd0a533f494be8d4d39ea0ea7 Report failure to add a memory to a bank to the user
diff -r 6f7a8a5b277f -r 8eb9ce5692f7 chirpui/bankedit.py --- a/chirpui/bankedit.py Tue Mar 13 13:52:00 2012 -0700 +++ b/chirpui/bankedit.py Tue Mar 13 14:07:06 2012 -0700 @@ -174,7 +174,12 @@ # Step 2: Update our notion of the memory's bank information self.refresh_memory(loc)
- def do_bank_index(_null, memory): + def do_bank_index(result, memory): + if isinstance(result, Exception): + common.show_error("Failed to add {mem} to bank: {err}" + .format(mem=memory.number, + err=str(result))) + return # Step 3: Set the memory's bank index (maybe) if not self._rf.has_bank_index or index is None: return do_refresh_memory()