Skip to content

Commit

Permalink
Merge pull request #51 from AdricEpic/fix_unreachable_code
Browse files Browse the repository at this point in the history
Fixes unreachable log statement.
  • Loading branch information
victoriagrey authored Oct 30, 2017
2 parents 787218a + 42a7a15 commit d77a0c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shotgunEventDaemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,9 +499,10 @@ def _getNewEvents(self):
conn_attempts = 0
while True:
try:
return self._sg.find("EventLogEntry", filters, fields, order, limit=self.config.getMaxEventBatchSize())
events = self._sg.find("EventLogEntry", filters, fields, order, limit=self.config.getMaxEventBatchSize())
if events:
self.log.debug('Got %d events: %d to %d.', len(events), events[0]['id'], events[-1]['id'])
return events
except (sg.ProtocolError, sg.ResponseError, socket.error), err:
conn_attempts = self._checkConnectionAttempts(conn_attempts, str(err))
except Exception, err:
Expand Down

0 comments on commit d77a0c1

Please sign in to comment.