From 7b74695a4343689025053a6b4d60198202daeacf Mon Sep 17 00:00:00 2001 From: Maciej Dziardziel Date: Wed, 29 Nov 2017 14:51:38 +0000 Subject: [PATCH] make it work with python3 --- lib/django_dbshell_plus/management/commands/dbshell_plus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))