Skip to content

Conversation

@Ixve
Copy link

@Ixve Ixve commented Sep 15, 2025

For whatever reason - a single character name made the entire script throw a KeyError, and it was fixed by just moving the unicode_patch outside the if-statement

concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
  File "C:\Program Files\Python311\Lib\concurrent\futures\process.py", line 261, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Python311\Lib\site-packages\gitfive\lib\xray.py", line 83, in get_repo
    results["usernames_history"][username]["names"][name]["repos"].add(repo_id)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'R'
"""

For whatever reason - a single character name made the entire script throw a KeyError, and it was fixed by just moving the unicode_patch outside the if-statement

concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
  File "C:\Program Files\Python311\Lib\concurrent\futures\process.py", line 261, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Python311\Lib\site-packages\gitfive\lib\xray.py", line 83, in get_repo
    results["usernames_history"][username]["names"][name]["repos"].add(repo_id)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'R'
"""
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