Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'str' object has no attribute 'get' #69

Open
ghost opened this issue Feb 7, 2023 · 3 comments
Open

AttributeError: 'str' object has no attribute 'get' #69

ghost opened this issue Feb 7, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Feb 7, 2023

AttributeError: 'str' object has no attribute 'get'
(1 additional frame(s) were not displayed)
...
  File "django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "cove_ofds/views.py", line 139, in explore_ofds
    process_data = task.process(process_data)
  File "cove_ofds/process.py", line 205, in process
    converter.process_data(nodes_data, spans_data)
  File "libcoveofds/geojson.py", line 227, in process_data
    self._process_span(geojson_feature)
  File "libcoveofds/geojson.py", line 384, in _process_span
    span["start"] = span.get("start", {}).get("id")
@lgs85
Copy link

lgs85 commented Feb 8, 2023

this occurred because I specified start as a string rather than as a dereferenced object in a geojson upload

@duncandewhurst
Copy link
Contributor

I think the ultimate solution to this might be:

@ghost
Copy link
Author

ghost commented Feb 9, 2023

I think the ultimate solution to this might be: Open-Telecoms-Data/open-fibre-data-standard#253

See reply on Open-Telecoms-Data/cove-ofds#84 (comment)

ghost pushed a commit that referenced this issue Feb 10, 2023
@ghost ghost mentioned this issue Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants