openownership / openownership.org-wagtail

Open Ownership Wagtail site.
Other
1 stars 1 forks source link

TypeError in country-tag #356

Closed hactarbot3000 closed 1 year ago

hactarbot3000 commented 1 year ago

Error in openownership.org

TypeError in country-tag '>' not supported between instances of 'NoneType' and 'datetime.datetime'

View on Bugsnag

Stacktrace

modules/notion/models.py:532 - last_updated
templates/views/country.jinja:29 - block 'content'
templates/base_with_menu.jinja:25 - block 'main_inner'
templates/base.jinja:34 - block 'main'
templates/base.jinja:32 - top-level template code
templates/base_with_menu.jinja:1 - top-level template code
templates/views/country.jinja:2 - top-level template code

View full stacktrace

Created automatically via Bugsnag

StephenAbbott commented 1 year ago

@drcongo We think this may have been caused by an issue relating to https://github.com/openownership/openownership.org-wagtail/issues/357

Internally we tried to see what would happen if we added both the Denmark and Greenland country tags to the implementation tracker entry for Central Business Register (Centrale Virksomhedsregister [CVR]) but this seems to have thrown up this issue as well as causing the Greenland country page to return a 500 error at present https://www.openownership.org/en/map/country/greenland/

We have now removed the Greenland tag from that implementation tracker entry again

StephenAbbott commented 1 year ago

Thanks @drcongo