Skip to content

Commit 8c1f79c

Browse files
fix: replace bare except with except Exception in pytree/__init__.py
1 parent b9a6b84 commit 8c1f79c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extension/pytree/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
tree_unflatten as tree_unflatten,
3333
TreeSpec as TreeSpec,
3434
)
35-
except:
35+
except Exception:
3636
logger.info(
3737
"Unable to import executorch.extension.pytree, using native torch pytree instead."
3838
)

0 commit comments

Comments
 (0)