We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 554fb3d commit 617dc54Copy full SHA for 617dc54
version_query/query.py
@@ -19,7 +19,7 @@ def _caller_folder(stack_level: int = 1) -> pathlib.Path:
19
caller_path = frame_info[1] # frame_info.filename
20
21
here = pathlib.Path(caller_path).absolute().resolve()
22
- assert here.is_file(), here
+ assert here.is_file() or here.name == '<string>', here
23
here = here.parent
24
assert here.is_dir(), here
25
_LOG.debug('found directory "%s"', here)
0 commit comments