mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-04-23 03:00:38 -04:00
A weird __eq__ method could raise an exception when using 'in'
This commit is contained in:
@@ -26,9 +26,9 @@ class CommonVariable(BaseVariable):
|
||||
def _items(self, main_value):
|
||||
result = [(self.source, get_shortish_repr(main_value))]
|
||||
for key in self._safe_keys(main_value):
|
||||
if key in self.exclude:
|
||||
continue
|
||||
try:
|
||||
if key in self.exclude:
|
||||
continue
|
||||
value = self._get_value(main_value, key)
|
||||
except Exception:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user