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

BUG max() arg is an empty sequence #522

Open
dappsar opened this issue Aug 13, 2024 · 1 comment
Open

BUG max() arg is an empty sequence #522

dappsar opened this issue Aug 13, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dappsar
Copy link

dappsar commented Aug 13, 2024

Describe the bug
From one day to the next, it stopped working with the following error:

  File "/waka-readme-stats/main.py", line 230, in <module>
    run(main())
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/waka-readme-stats/main.py", line 217, in main
    stats = await get_stats()
            ^^^^^^^^^^^^^^^^^
  File "/waka-readme-stats/main.py", line 193, in get_stats
    stats += f"{make_language_per_repo_list(repositories)}\n\n"
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/waka-readme-stats/graphics_list_formatter.py", line 141, in make_language_per_repo_list
    top_language = max(list(language_count.keys()), key=lambda x: language_count[x]["count"])
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: max() arg is an empty sequence
sys:1: RuntimeWarning: coroutine 'AsyncClient.get' was never awaited```

There were no changes to the readme or GitHub action until I detected the error, at which point I started testing different options, but with no positive results.

Github repository link
https://github.com/dappsar/dappsar

Additional context
It was working until last week.

@dappsar dappsar added the bug Something isn't working label Aug 13, 2024
@beatrizsmerino
Copy link

Captura de pantalla 2024-08-19 a las 15 33 25
I think I have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants