Code

Ticket #13813: 13818.diff

File 13818.diff, 559 bytes (added by shields, 4 years ago)
Line 
1diff --git a/db/backends/__init__.py b/google3/third_party/py/django/v1_2/db/backends/__init__.py
2index 5918935..cd5e480 100755
3--- a/db/backends/__init__.py
4+++ b/db/backends/__init__.py
5@@ -22,7 +22,10 @@ class BaseDatabaseWrapper(local):
6         self.alias = alias
7 
8     def __eq__(self, other):
9-        return self.settings_dict == other.settings_dict
10+        try:
11+            return self.settings_dict == other.settings_dict
12+        except AttributeError:
13+            return False
14 
15     def __ne__(self, other):
16         return not self == other