Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/django_dbshell_plus/management/commands/dbshell_plus.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import errno
import subprocess

from django.db import connections
from django.core.management.commands import dbshell
from django.db import connections


class Command(dbshell.Command):
Expand All @@ -20,7 +20,7 @@ def handle(self, **options):
try:
getattr(self, cmd)(connection)
return
except OSError, e:
except OSError as e:
if e.errno != errno.ENOENT:
self.stderr.write("Could not start %s: %s" % (cmd, str(e)))

Expand Down