Skip to content

Commit

Permalink
changed incorrect use of not in conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjalling-dejong committed Nov 26, 2024
1 parent b24da73 commit 26710b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fm2prof/IniFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __init__(self, file_path: Union[Path, str] = ".", logger: Logger = None):

if file_path is None:
self.set_logger_message(
f"No ini file given, using default options", "warning"
"No ini file given, using default options", "warning"
)
return
else:
Expand All @@ -113,7 +113,7 @@ def __init__(self, file_path: Union[Path, str] = ".", logger: Logger = None):
self._read_inifile(file_path)
elif file_path.is_dir():
self.set_logger_message(
f"No ini file given, using default options", "warning"
"No ini file given, using default options", "warning"
)
pass
else:
Expand All @@ -122,7 +122,7 @@ def __init__(self, file_path: Union[Path, str] = ".", logger: Logger = None):

@property
def _file_dir(self) -> Path:
if not self._file is None:
if self._file is not None:
return self._file.parent
return Path().cwd()

Expand Down

0 comments on commit 26710b8

Please sign in to comment.