Skip to content

Commit

Permalink
Fix WSGIServerException ImportError
Browse files Browse the repository at this point in the history
References jezdez#40
  • Loading branch information
streeter committed Oct 29, 2013
1 parent b1540da commit cf55ee8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions staticfiles/management/commands/runserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from django.conf import settings
from django.core.handlers.wsgi import WSGIHandler
from django.core.servers.basehttp import run, WSGIServerException
from django.core.servers.basehttp import run
from django.core.management.base import BaseCommand, CommandError

from staticfiles.handlers import StaticFilesHandler
Expand Down Expand Up @@ -97,7 +97,7 @@ def inner_run():
try:
handler = self.get_handler(*args, **options)
run(addr, int(port), handler)
except WSGIServerException, e:
except Exception, e:
# Use helpful error messages instead of ugly tracebacks.
ERRORS = {
13: "You don't have permission to access that port.",
Expand Down

0 comments on commit cf55ee8

Please sign in to comment.