Skip to content
Browse files

[1.5.x] Fixed #19355 -- Improved LiveServerThread's handling of excep…

…tions. Thanks to flub for the report.

Backport of 612357f
  • Loading branch information...
1 parent 8c2f362 commit 2e5b725197db406aa8b94aa4a86e2bac3dc571b1 @jphalip jphalip committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/test/
1 django/test/
@@ -1022,6 +1022,7 @@ def run(self):
(, port), QuietWSGIRequestHandler)
except WSGIServerException as e:
if (index + 1 < len(self.possible_ports) and
+ hasattr(e.args[0], 'errno') and
e.args[0].errno == errno.EADDRINUSE):
# This port is already in use, so we go on and try with
# the next one in the list.

0 comments on commit 2e5b725

Please sign in to comment.
Something went wrong with that request. Please try again.