s = s[:p] + '.' + s[p:p+8]
try:
amount = int( Decimal(s) * 100000000 )
- except:
+ except Exception:
amount = None
else:
try:
amount = int( s )
- except:
+ except Exception:
amount = None
entry.set_text(s)
return amount
return
try:
seed = wallet.get_seed(password)
- except:
+ except Exception:
show_message("Incorrect password")
return
dialog = gtk.MessageDialog(
try:
seed.decode('hex')
- except:
+ except Exception:
print_error("Warning: Not hex, trying decode")
seed = mnemonic.mn_decode( seed.split(' ') )
if not seed:
try:
fee = int( 100000000 * Decimal(fee) )
- except:
+ except Exception:
show_message("error")
return
self.wallet.set_fee(fee)
try:
nz = int( nz )
if nz>8: nz = 8
- except:
+ except Exception:
show_message("error")
return
proxy = network.config.get('proxy')
auto_connect = network.config.get('auto_cycle')
network.set_parameters(host, port, protocol, proxy, auto_connect)
- except:
+ except Exception:
show_message("error:" + server)
return False
try:
wallet.get_seed(password)
- except:
+ except Exception:
show_message("Incorrect password")
return
if re.match('^(|([\w\-\.]+)@)((\w[\w\-]+\.)+[\w\-]+)$', r):
try:
to_address = self.wallet.get_alias(r, interactive=False)
- except:
+ except Exception:
continue
if to_address:
s = r + ' <' + to_address + '>'
try:
amount = int( Decimal(amount_entry.get_text()) * 100000000 )
- except:
+ except Exception:
self.show_message( "invalid amount")
return
try:
fee = int( Decimal(fee_entry.get_text()) * 100000000 )
- except:
+ except Exception:
self.show_message( "invalid fee")
return
button.show()
hbox.pack_start(button,False)
+ button = gtk.Button("Prioritize")
+ def prioritize_address(w, treeview, liststore, wallet):
+ path, col = treeview.get_cursor()
+ if path:
+ address = liststore.get_value( liststore.get_iter(path), 0)
+ if address in wallet.prioritized_addresses:
+ wallet.unprioritize(address)
+ else:
+ wallet.prioritize(address)
+ self.update_receiving_tab()
+ button.connect("clicked", prioritize_address, treeview, liststore, self.wallet)
+ button.show()
+ hbox.pack_start(button,False)
+
if not is_recv:
button = gtk.Button("Pay to")
def payto(w, treeview, liststore):
if conf > 0:
try:
time_str = datetime.datetime.fromtimestamp( timestamp).isoformat(' ')[:-3]
- except:
+ except Exception:
time_str = "------"
conf_icon = gtk.STOCK_APPLY
elif conf == -1: