Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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
Julien Phalip authored November 25, 2012

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  django/test/testcases.py
1  django/test/testcases.py
@@ -1022,6 +1022,7 @@ def run(self):
1022 1022
                         (self.host, port), QuietWSGIRequestHandler)
1023 1023
                 except WSGIServerException as e:
1024 1024
                     if (index + 1 < len(self.possible_ports) and
  1025
+                        hasattr(e.args[0], 'errno') and
1025 1026
                         e.args[0].errno == errno.EADDRINUSE):
1026 1027
                         # This port is already in use, so we go on and try with
1027 1028
                         # the next one in the list.

0 notes on commit 2e5b725

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