We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cca47c commit d950586Copy full SHA for d950586
sql_server/pyodbc/base.py
@@ -22,7 +22,7 @@
22
23
from django.conf import settings
24
from django.db.backends.base.base import BaseDatabaseWrapper
25
-from django.db.utils import ProgrammingError
+from django.db.utils import ProgrammingError, OperationalError
26
from django.utils.encoding import smart_str
27
from django.utils.functional import cached_property
28
from django.utils.six import binary_type, text_type
@@ -315,7 +315,7 @@ def get_new_connection(self, conn_params):
315
need_to_retry = False
316
break
317
if not need_to_retry:
318
- raise
+ raise OperationalError(*e.args)
319
320
conn.timeout = query_timeout
321
return conn
0 commit comments