File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sdks/python/apache_beam/internal/cloudpickle Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
17381738def 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
You can’t perform that action at this time.
0 commit comments