Do no supress exception
This commit is contained in:
parent
9aa53056ad
commit
65ec6d6f9b
1 changed files with 3 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ from abc import ABC, abstractmethod
|
||||||
from functools import lru_cache
|
from functools import lru_cache
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from types import TracebackType
|
from types import TracebackType
|
||||||
from typing import IO, Any, List, Optional, Type, Union, cast
|
from typing import IO, Any, List, Literal, Optional, Type, Union, cast
|
||||||
|
|
||||||
from great_ai.utilities import ConfigFile, get_logger
|
from great_ai.utilities import ConfigFile, get_logger
|
||||||
|
|
||||||
|
|
@ -123,7 +123,7 @@ class LargeFileBase(ABC):
|
||||||
type: Optional[Type[BaseException]],
|
type: Optional[Type[BaseException]],
|
||||||
exc: Optional[BaseException],
|
exc: Optional[BaseException],
|
||||||
traceback: Optional[TracebackType],
|
traceback: Optional[TracebackType],
|
||||||
) -> bool:
|
) -> Literal[False]:
|
||||||
self._file.close()
|
self._file.close()
|
||||||
|
|
||||||
if type is None:
|
if type is None:
|
||||||
|
|
@ -133,7 +133,7 @@ class LargeFileBase(ABC):
|
||||||
else:
|
else:
|
||||||
logger.exception("Could not finish operation.")
|
logger.exception("Could not finish operation.")
|
||||||
|
|
||||||
return True
|
return False
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _local_name(self) -> str:
|
def _local_name(self) -> str:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue