Skip to content

Commit be20dc1

Browse files
committed
include Oracle "not connected" check
Oracle error message looks like this: OperationalError: ORA-03114: not connected to ORACLE
1 parent cc97b5f commit be20dc1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

djcelery/loaders.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def _close_database(self):
6868
try:
6969
close()
7070
except DATABASE_ERRORS, exc:
71-
if "closed" not in str(exc):
71+
str_exc = str(exc)
72+
if "closed" not in str_exc and "not connected" in str_exc:
7273
raise
7374

7475
def close_database(self, **kwargs):

0 commit comments

Comments
 (0)