(exc: Exception)
| 305 | |
| 306 | |
| 307 | def _to_session_fs_error(exc: Exception) -> SessionFSError: |
| 308 | code = SessionFSErrorCode.ENOENT if _is_enoent(exc) else SessionFSErrorCode.UNKNOWN |
| 309 | return SessionFSError(code=code, message=str(exc)) |
| 310 | |
| 311 | |
| 312 | def _is_enoent(exc: Exception) -> bool: |
no test coverage detected
searching dependent graphs…