keyerror bugfix and increased api timeout
This commit is contained in:
parent
ee9023b150
commit
0302447588
@ -30,7 +30,7 @@ import onionrutils, onionrexceptions, onionrcrypto, blockimporter, onionrevents
|
|||||||
|
|
||||||
class FDSafeHandler(WSGIHandler):
|
class FDSafeHandler(WSGIHandler):
|
||||||
def handle(self):
|
def handle(self):
|
||||||
timeout = Timeout(10, exception=Exception)
|
timeout = Timeout(60, exception=Exception)
|
||||||
timeout.start()
|
timeout.start()
|
||||||
|
|
||||||
#timeout = gevent.Timeout.start_new(3)
|
#timeout = gevent.Timeout.start_new(3)
|
||||||
|
@ -244,7 +244,10 @@ class OnionrCommunicatorDaemon:
|
|||||||
continue
|
continue
|
||||||
if blockHash in self._core.getBlockList():
|
if blockHash in self._core.getBlockList():
|
||||||
logger.debug('Block %s is already saved.' % (blockHash,))
|
logger.debug('Block %s is already saved.' % (blockHash,))
|
||||||
|
try:
|
||||||
del self.blockQueue[blockHash]
|
del self.blockQueue[blockHash]
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
continue
|
continue
|
||||||
if self._core._blacklist.inBlacklist(blockHash):
|
if self._core._blacklist.inBlacklist(blockHash):
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user