costarc / MSXPi

Interface for MSX to Connect and use Raspberry Pi resources
MIT License
79 stars 20 forks source link

PyFat indentation error #50

Open bradstallion opened 1 year ago

bradstallion commented 1 year ago

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 commented 1 week ago

Add a "pass" inside the IF.

if signature != 0xAA55: pass

This is just a workaround though.