GothenburgBitFactory / bugwarrior

Pull github, bitbucket, and trac issues into taskwarrior
http://pypi.python.org/pypi/bugwarrior
GNU General Public License v3.0
732 stars 209 forks source link

AttributeError: 'MainSectionConfig' object has no attribute 'notifications' #864

Closed mandre closed 2 years ago

mandre commented 2 years ago

Commit 1cbbcb68f715d809bc2f366e2a7b19e314057fe9 introduced a regression that causes a traceback when enabling notifications:

Traceback (most recent call last):
  File "/home/martin/.local/bin/bugwarrior-pull", line 33, in <module>
    sys.exit(load_entry_point('bugwarrior==1.8.0', 'console_scripts', 'bugwarrior-pull')())
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1137, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1062, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.10/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
  File "/home/martin/.local/lib/python3.10/site-packages/bugwarrior/command.py", line 72, in pull
    synchronize(issue_generator, config, main_section, dry_run)
  File "/home/martin/.local/lib/python3.10/site-packages/bugwarrior/db.py", line 498, in synchronize
    if not main_config.notifications.only_on_new_tasks or updates > 0:
AttributeError: 'MainSectionConfig' object has no attribute 'notifications'