Skip to content

Commit

Permalink
Log if a bad request causes an assert
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdavis committed Feb 15, 2018
1 parent 3e1ed3e commit 6cb3885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mockupdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,7 @@ def _server_loop(self, client, client_addr):
else:
raise
except AssertionError:
# We got bad data. Bail to avoid leaking resources
traceback.print_exc()
break

self._log('disconnected: %s:%d' % client_addr)
Expand Down

0 comments on commit 6cb3885

Please sign in to comment.