Skip to content

Commit

Permalink
Namecoin: Fix exception handling for name_update in Renew in Qt GUI
Browse files Browse the repository at this point in the history
Fixes #88
  • Loading branch information
JeremyRand committed Mar 15, 2019
1 parent bf5e73f commit 8e0c9a5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions electrum_nmc/gui/qt/uno_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

import sys
import traceback

from electrum_nmc.commands import NameUpdatedTooRecentlyError
from electrum_nmc.i18n import _
from electrum_nmc.names import format_name_identifier, format_name_value, name_expires_in
from electrum_nmc.util import NotEnoughFunds, NoDynamicFeeEstimates
from electrum_nmc.wallet import InternalAddressCorruption

from .configure_name_dialog import show_configure_name
from .util import *
Expand Down Expand Up @@ -132,6 +137,16 @@ def renew_selected_items(self):
except NameUpdatedTooRecentlyError:
# The name was recently updated, so skip it and don't renew.
continue
except (NotEnoughFunds, NoDynamicFeeEstimates) as e:
self.parent.show_message(str(e))
return
except InternalAddressCorruption as e:
self.parent.show_error(str(e))
raise
except BaseException as e:
traceback.print_exc(file=sys.stdout)
self.parent.show_message(str(e))
return

try:
broadcast(tx)
Expand Down

0 comments on commit 8e0c9a5

Please sign in to comment.