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

Tool shall use internal email template #3

Open
mxmehl opened this issue Feb 28, 2025 · 0 comments
Open

Tool shall use internal email template #3

mxmehl opened this issue Feb 28, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@mxmehl
Copy link
Member

mxmehl commented Feb 28, 2025

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.9/x64/bin/auth-user-mgr", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/auth_user_mgr/main.py", line 2[52](https://github.com/OpenRailAssociation/openrail-users/pull/2/checks#step:7:53), in cli
    if user_check_existence(api=api, user=user, mail=mail):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/auth_user_mgr/main.py", line 139, in user_check_existence
    mail.send_email(recipient=user.email, link=invitation_url)
  File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/auth_user_mgr/_email.py", line 75, in send_email
    template_str = self.read_template(self.template)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/auth_user_mgr/_email.py", line 67, in read_template
    with open(file_path, "r", encoding="utf-8") as file:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'templates/invitation.html.j2'
@mxmehl mxmehl added the bug Something isn't working label Feb 28, 2025
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

1 participant