Added TypeError excception catcher#183
Conversation
|
Can you give an explanation as to what this is solving? If it is a |
Hi, sorry i forgot to write comment. Thank you for the question. This specifically addresses when users pass |
|
Thanks for the explanation, it's more clear now. In this case, would suggest adding a separate check to explicitly check if it is a Indeed the name of the parameter Thanks for your interest and contribution. |
|
Yes, that's a good idea, but I found a simpler way to fix it. Just changing the order of if checks inside the 'upload_style' method. It seems to have solved the problem of passing just 'Path' and works correctly when passing a string. Less code - less problems. I've committed the changes, hopefully this solution will work for you. Thanks! |
|
It's not a bad idea in theory but we had it this way before, I'm pretty sure, and there was a major problem with Windows systems due to a 255-character limit on file names. If you then pass the XML string (which is almost certainly more than 255 characters), it will fail because of this limitation. |
|
Ok, I couldn't reproduce the error you're talking about. Anyway, just added the Path check you mentioned above, and a test for it. |
No description provided.