if confirmations:
try:
time_str = datetime.datetime.fromtimestamp( timestamp).isoformat(' ')[:-3]
- except:
+ except Exception:
time_str = "unknown"
else:
time_str = 'pending'
return
try:
amount = int( Decimal( self.str_amount) * 100000000 )
- except:
+ except Exception:
print(_('Invalid Amount'))
return
try:
fee = int( Decimal( self.str_fee) * 100000000 )
- except:
+ except Exception:
print(_('Invalid Fee'))
return
try:
tx = self.wallet.mktx( [(self.str_recipient, amount)], password, fee)
- except BaseException, e:
+ except Exception as e:
print(str(e))
return
h = self.wallet.send_tx(tx)
print(_("Please wait..."))
self.wallet.tx_event.wait()
- status, msg = self.wallet.receive_tx( h )
+ status, msg = self.wallet.receive_tx( h, tx )
if status:
print(_('Payment sent.'))