Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 2e5b725197db406aa8b94aa4a86e2bac3dc571b1 1 parent 8c2f362
@jphalip jphalip authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/test/testcases.py
View
1  django/test/testcases.py
@@ -1022,6 +1022,7 @@ def run(self):
(self.host, 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.
Please sign in to comment.
Something went wrong with that request. Please try again.