Skip to content

Commit a543b6d

Browse files
addresrsing reviwer comments
1 parent 9f7e521 commit a543b6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdks/python/apache_beam/internal/cloudpickle/cloudpickle.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def _get_or_create_tracker_id(class_def, id_generator):
193193
class_tracker_id = id_generator(class_def)
194194
_DYNAMIC_CLASS_TRACKER_BY_CLASS[class_def] = class_tracker_id
195195
_DYNAMIC_CLASS_TRACKER_BY_ID[class_tracker_id] = class_def
196-
except:
196+
except Exception:
197197
_DYNAMIC_CLASS_TRACKER_BY_CLASS.pop(class_def, None)
198198
raise
199199
return class_tracker_id
@@ -1737,6 +1737,6 @@ def dumps(
17371737

17381738
def hash_dynamic_classdef(classdef):
17391739
"""Generates a deterministic ID by hashing the pickled class definition."""
1740-
hexidgest = hashlib.sha256(
1740+
hexdigest = hashlib.sha256(
17411741
dumps(classdef, config=CloudPickleConfig(id_generator=None))).hexdigest()
1742-
return hexidgest
1742+
return hexdigest

0 commit comments

Comments
 (0)