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

Fix language fallback error related to '/'.join #64

Merged
merged 1 commit into from
Mar 26, 2021

Conversation

theo-ardouin
Copy link
Contributor

@theo-ardouin theo-ardouin commented Mar 26, 2021

Test steps:

  • Run the bot with LANGUAGE=fr
  • Run !init command
  • The game should start as expected

It fixes the following issue:

File "/whiterabbit/./src/utils.py", line 54, in get_image
    return img.get(Path("/".join(parts)), name)
  File "/whiterabbit/./src/resources.py", line 24, in get
    raise FileNotFoundError(directory / name)
FileNotFoundError: //whiterabbit/resources/images/fr/cards/locations/barn

FileNotFoundError: //whiterabbit/resources/images/fr/cards/locations/barn
@theo-ardouin theo-ardouin changed the title Fix language fallback related to '/'.join Fix language fallback error related to '/'.join Mar 26, 2021
@circumspect circumspect merged commit 1d18797 into circumspect:main Mar 26, 2021
@circumspect
Copy link
Owner

Thanks for the fix!

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.

3 participants