Skip to content
This repository was archived by the owner on Dec 14, 2024. It is now read-only.
This repository was archived by the owner on Dec 14, 2024. It is now read-only.

AttributeError: 'NoneType' object has no attribute 'get' #6

Description

@strk

Getting an error trying to convert http://skjema.geonorge.no/SOSI/produktspesifikasjon/FKB-Ar5/4.6/FKB-Ar546.xsd

$ xsd2pgsql/xsd2pgsql.py FKB-Ar546.xsd
Traceback (most recent call last):
  File "xsd2pgsql/xsd2pgsql.py", line 258, in <module>
    buildTypes(XMLS, xsd)
  File "xsd2pgsql/xsd2pgsql.py", line 165, in buildTypes
    USER_TYPES[pg_normalize(el.get('name'))] = restr.get('base').replace(XMLS_PREFIX, '')
AttributeError: 'NoneType' object has no attribute 'get'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions