Skip to content

Maps analysis causes systematic error #500

@unguest

Description

@unguest

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Launch any email analysis

Expected behavior
Having an analysis of Maps contributions.

Trace

Traceback (most recent call last):
  File "/Users/unguest/.local/bin/ghunt", line 10, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/unguest/Library/Application Support/pipx/venvs/ghunt/lib/python3.12/site-packages/ghunt/ghunt.py", line 18, in main
    parse_and_run()
  File "/Users/unguest/Library/Application Support/pipx/venvs/ghunt/lib/python3.12/site-packages/ghunt/cli.py", line 31, in parse_and_run
    process_args(args)
  File "/Users/unguest/Library/Application Support/pipx/venvs/ghunt/lib/python3.12/site-packages/ghunt/cli.py", line 41, in process_args
    asyncio.run(email.hunt(None, args.email_address, args.json))
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/base_events.py", line 664, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/Users/unguest/Library/Application Support/pipx/venvs/ghunt/lib/python3.12/site-packages/ghunt/modules/email.py", line 116, in hunt
    err, stats, reviews, photos = await gmaps.get_reviews(as_client, target.personId)
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/unguest/Library/Application Support/pipx/venvs/ghunt/lib/python3.12/site-packages/ghunt/helpers/gmaps.py", line 88, in get_reviews
    review.id = review_data[0][10]
                ~~~~~~~~~~~~~~^^^^
TypeError: 'NoneType' object is not subscriptable

System (please complete the following information):

  • OSX
  • Python3.12

Additional context
Maybe something changed in Maps' pages architecture ?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions