This is apparently due to the fact in Python 3.12 the parsing of nested quotes was changed (might even say "improved").
Tried a blind fix, should be doing better regardless. The error is kinda obvious.
On a side note, I have a problem since your previous commit: If I launch Armory against an old .armory folder I had from a back-up, it doesn't recognize neither the wallet nor the watch-only wallet that there were inside.
Since the load digital backup dialog is still not working, I can't try to see if they would work if manually imported.
If possible I would like to load the binary backups as they pair the addresses I used with the description I gave them, while restoring a paper backup of course lacks the descriptions.
Are you saying it's failing to read from .lmdb files (new cpp wallets) or from .wallet files (old python wallets)?