commit a5761fe8a87b4999efda9be458250d8a439f0df7
parent c5d42f36142e0bcd480b19b72485bc83d1179962
Author: ThomasV <thomasv@gitorious>
Date: Wed, 16 May 2012 19:20:21 +0200
do not use deprecated BaseException.message
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/gui.py b/lib/gui.py
@@ -877,7 +877,7 @@ class ElectrumWindow:
try:
tx = self.wallet.mktx( to_address, amount, label, password, fee )
except BaseException, e:
- self.show_message(e.message)
+ self.show_message(str(e))
return
status, msg = self.wallet.sendtx( tx )
diff --git a/lib/gui_qt.py b/lib/gui_qt.py
@@ -469,7 +469,7 @@ class ElectrumWindow(QMainWindow):
try:
tx = self.wallet.mktx( to_address, amount, label, password, fee )
except BaseException, e:
- self.show_message(e.message)
+ self.show_message(str(e))
return
status, msg = self.wallet.sendtx( tx )
diff --git a/lib/wallet.py b/lib/wallet.py
@@ -864,7 +864,7 @@ class Wallet:
except BaseException, e:
# raise exception if verify fails (verify the chain)
if interactive:
- show_message("Alias error: " + e.message)
+ show_message("Alias error: " + str(e))
return
print target, signing_address, auth_name