Skip to content

Commit 1a85a72

Browse files
tcloseeffigies
andauthored
Update pydra/utils/hash.py
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 41bc8e2 commit 1a85a72

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pydra/utils/hash.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ def bytes_repr(obj: object, cache: Cache) -> Iterator[bytes]:
114114
dct = {attr: getattr(obj, attr) for attr in obj.__slots__}
115115
else:
116116
dct = obj.__dict__
117-
dct = obj.__dict__
118-
except AttributeError as e:
119-
try:
120-
dct = {n: getattr(obj, n) for n in obj.__slots__} # type: ignore
121-
except AttributeError:
122-
raise e
123117
yield from bytes_repr_mapping_contents(dct, cache)
124118
yield b"}"
125119

0 commit comments

Comments
 (0)