Compare commits

..

2 commits

Author SHA1 Message Date
67bf25a0a0
bump version 2025-01-19 14:52:53 +01:00
a84b66eb88
fix shell completion when cfg has server block w/o server_name 2025-01-19 14:52:30 +01:00
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ def get_sites(cfg: Path) -> Generator[Tuple[Path, str]]:
config_part = _remove_comments(c[1])
for server_block in _get_server_blocks(config_part):
sn = next(re.finditer(SERVER_NAME_RE, server_block))
sn = next(re.finditer(SERVER_NAME_RE, server_block), None)
if not sn:
continue

View file

@ -2,7 +2,7 @@ from setuptools import setup
setup(
name='ncc',
version='1.0.1',
version='1.0.2',
packages=['ncc'],
install_requires=[
'click',