diff --git a/lib/django_dbshell_plus/management/commands/dbshell_plus.py b/lib/django_dbshell_plus/management/commands/dbshell_plus.py index 720f800..a4e2760 100644 --- a/lib/django_dbshell_plus/management/commands/dbshell_plus.py +++ b/lib/django_dbshell_plus/management/commands/dbshell_plus.py @@ -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)))