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

Resolve Windows OS encoding bug #3

Closed

Conversation

alptezbasaran
Copy link

This commit, if applied, will resolve the issues on Windows OS caused by encoding.

^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\OneDrive\Desktop\Gen-Ed\src\gened\db.py", line 90, in init_db_command
init_db()
File "C:\Users\user\OneDrive\Desktop\Gen-Ed\src\gened\db.py", line 78, in init_db
db.executescript(f.read())
^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

@liffiton liffiton closed this in 9916f06 Jun 20, 2024
@liffiton
Copy link
Owner

Thanks! I fixed it in a separate commit to catch it one other place and add an annotation that mypy needed to be happy. I appreciate 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.

2 participants