wasabi222 / janitor

provider maintenance email parser
Other
53 stars 14 forks source link

Raise error when unable to extract data from the notification message #16

Closed mirceaulinic closed 5 years ago

mirceaulinic commented 5 years ago

And provide the email body to be able to debug and see exactly what's the format - possibly they've changed it again.

AttributeError: 'NoneType' object has no attribute 'groups'
(1 additional frame(s) were not displayed)
...
  File "__init__.py", line 43, in process_startup
    process()
  File "app/jobs/main.py", line 83, in process
    process_provider(client, mail, p)
  File "app/jobs/main.py", line 43, in process_provider
    result = provider.process(em)
  File "app/Providers.py", line 770, in process
    result = self.add_new_maint(soup, email)
  File "app/Providers.py", line 639, in add_new_maint
    impact = impact_re.groups()[0]

Job "<Job (id=run_loop name=run_loop)>" raised an exception