| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ff84b26 commit e480985
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -262,8 +262,7 @@ def to_file(self, filepath: PathLike) -> None: | |||
| 262 | 262 | try: | |
| 263 | 263 | self._serialize(fp) | |
| 264 | 264 | lfd.commit() | |
| 265 | - except Exception: | ||
| 266 | - # on failure it rolls back automatically, but we make it clear | ||
| 265 | + except BaseException: | ||
| 267 | 266 | lfd.rollback() | |
| 268 | 267 | raise | |
| 269 | 268 | # END handle change | |
| Back | FazBrowse Home | New Git URL |
0 commit comments