diff --git a/pytest_watch/config.py b/pytest_watch/config.py index 42ebde5..0a1b2a6 100644 --- a/pytest_watch/config.py +++ b/pytest_watch/config.py @@ -23,7 +23,7 @@ def __init__(self): self.path = None def pytest_cmdline_main(self, config): - if config.inifile: + if getattr(config, 'inifile', None): self.path = str(config.inifile)