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

PyFat indentation error #50

Open
bradstallion opened this issue Oct 14, 2023 · 1 comment
Open

PyFat indentation error #50

bradstallion opened this issue Oct 14, 2023 · 1 comment

Comments

@bradstallion
Copy link
Contributor

I'm running MSXPI v1.1 rev 0, server 1.1 build 20230915.680.
pcopy fails because of this:

/usr/local/lib/python3.9/dist-packages/pyfatfs/PyFat.py

line 954:

if signature != 0xAA55:
   #raise PyFATException(f"Invalid signature: \'{hex(signature)}\'.")

that causes and indentation error, since the "if" block is empty.

This change is made by msxpi-setup.sh:

sudo sed -i "s/raise PyFATException(f\"Invalid signature:/#raise PyFATException(f\"Invalid signature:/" /usr/local/lib/python3.9/dist-packages/pyfatfs/PyFat.py

@costarc
Copy link
Owner

costarc commented Nov 17, 2024

Add a "pass" inside the IF.

if signature != 0xAA55:
pass

This is just a workaround though.

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

No branches or pull requests

2 participants