You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And therefore it crashes for non-UTF8 inputs, e.g. this CIF: NiTe2.txt
The simplest approach is to put that line inside the next try block, at least to show a nice error message rather than a 500 error.
The second step would be to see if one can avoid decoding using directly bytes, or try some clever detection of encoding since often the weird characters are not really needed and can be ignored.
Here this is done outside the try/except:
tools-seekpath/compute/__init__.py
Line 103 in a85482a
And therefore it crashes for non-UTF8 inputs, e.g. this CIF:
NiTe2.txt
The simplest approach is to put that line inside the next
try
block, at least to show a nice error message rather than a 500 error.The second step would be to see if one can avoid decoding using directly bytes, or try some clever detection of encoding since often the weird characters are not really needed and can be ignored.
Originally reported in materialscloud-org/issues#22
The text was updated successfully, but these errors were encountered: