Skip to content

Commit

Permalink
[BUGFIX] 0.18.x - Prevent Error on Read Only Filesystem (#9977)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilo59 committed May 24, 2024
1 parent 71d0161 commit 5ac60f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions great_expectations/data_context/store/inline_store_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ def _save_changes(self) -> None:
context.config.to_yaml(outfile)
# In environments where wrting to disk is not allowed, it is impossible to
# save changes. As such, we log a warning but do not raise.
except PermissionError as e:
logger.warning(f"Could not save project config to disk: {e}")
except (PermissionError, OSError) as e:
logger.warning(f"Could not save project config to disk: {e!r}")

@staticmethod
def _determine_resource_name(key: tuple[str, ...]) -> str | None:
Expand Down

0 comments on commit 5ac60f4

Please sign in to comment.