update exception

This commit is contained in:
Alan Penner 2014-01-21 12:31:30 -08:00 committed by Ahmed Bodiwala
parent d64c08f54c
commit 1a1866664e

View File

@ -46,7 +46,7 @@ class BitcoinRPC(object):
log.info("Checking for submitblock")
resp = (yield self._call('submitblock', []))
self.has_submitblock = Trie
except Exception, e:
except Exception as e:
if (str(e) == "404 Not Found"):
log.debug("No submitblock detected.")
self.has_submitblock = False