Skip to content

fetch_st36xml: TypeError: 'NoneType' object has no attribute '__getitem__' #78

Description

@amotl
2025-11-12 10:22:51,105 INFO     [patzilla.access.dpma.dpmaregister       ][MainThread] Accessing URL https://register.dpma.de/DPMAregister/pat/register:showalleverfahrenstabellen?AKZ=2120160000748&lang=en
Traceback (most recent call last):
  [...]
  File "/path/to/site-packages/patzilla/navigator/services/dpma.py", line 77, in status_upstream_dpmaregister_handler
    data = dpmaregister.access_register('DE212016000074', 'json')
  File "/path/to/site-packages/patzilla/access/dpma/dpmaregister.py", line 742, in access_register
    response = register.fetch_st36xml(document_number, language)
  File "/path/to/site-packages/dogpile/cache/region.py", line 1231, in decorate
    should_cache_fn)
  [...]
  File "/path/to/site-packages/patzilla/access/dpma/dpmaregister.py", line 147, in fetch_st36xml
    st36xml_href = st36xml_anchor['href']
TypeError: 'NoneType' object has no attribute '__getitem__'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions