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

Update example_config.json structure due to parsing error #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ArtRoman
Copy link

Traceback (most recent call last):
File "main.py", line 82, in
main()
File "main.py", line 49, in main
zones = parser.parse_zones()
File "json_parser.py", line 145, in parse_zones
areas = self.parse_areas()
File "json_parser.py", line 135, in parse_areas
return self.__parse_rectangle('areas', Area)
File "json_parser.py", line 102, in __parse_rectangle
name = element['name']
TypeError: string indices must be integers

Traceback (most recent call last):
  File "main.py", line 82, in <module>
    main()
  File "main.py", line 49, in main
    zones = parser.parse_zones()
  File "json_parser.py", line 145, in parse_zones
    areas = self.parse_areas()
  File "json_parser.py", line 135, in parse_areas
    return self.__parse_rectangle('areas', Area)
  File "json_parser.py", line 102, in __parse_rectangle
    name = element['name']
TypeError: string indices must be integers
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

Successfully merging this pull request may close these issues.

1 participant