Skip to content

Commit

Permalink
fixed bug in sisl.io warning
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Papior <[email protected]>
  • Loading branch information
zerothi committed Nov 16, 2023
1 parent 25c1c5a commit 0b3fea2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sisl/io/sile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from sisl._environ import get_environ_variable
from sisl._internal import set_module
from sisl.messages import SislInfo, SislWarning, deprecate, info
from sisl.messages import SislInfo, SislWarning, deprecate, info, warn
from sisl.utils.misc import str_spec

from ._help import *
Expand Down Expand Up @@ -500,7 +500,7 @@ def base_directory(self, relative_to="."):
relative_to = Path(relative_to)
try:
d = self._directory.relative_to(relative_to.resolve())
except ValueError: # in case they are not relative
except ValueError: # in case they are not relative
d = self._directory
return d

Expand Down

0 comments on commit 0b3fea2

Please sign in to comment.