Permalink
Browse files

Reorder exceptions for network related errors in cloudtrail worker

  • Loading branch information...
pwnbus committed Oct 9, 2018
1 parent 2d7d3fd commit 03d18f914c6dea3f89f654a643fcc9a2923b76e0
Showing with 0 additions and 6 deletions.
  1. +0 −6 mq/esworker_cloudtrail.py
@@ -346,12 +346,6 @@ def run(self):
self.on_message(event)
self.taskQueue.delete_message(msg)
except KeyboardInterrupt:
sys.exit(1)
except Exception as e:
logger.exception(e)
time.sleep(3)
except (SSLEOFError, SSLError, socket.error) as e:
logger.info('Received network related error...reconnecting')
time.sleep(5)

0 comments on commit 03d18f9

Please sign in to comment.