-
Notifications
You must be signed in to change notification settings - Fork 79
Description
When you have multiple attachments with the same name the getAttachments function fails to retrieve them.
I added a try/except around the code in pyral to allow for the app not to crash, but the images are still not able to be returned. For example I have two image.png attached to a task. When calling getAttachments the app will crash. Adding the try/except allowed one of them to be returned, but an exception was called on the other. I have included screenshots and the code that I updated with the try/except. This is clearly related to the names being the same since in getAttachment it uses the filename as a variable. This seems to be the root cause of the issue. I might suggest having getAttachments iterate via OID or some other mandatory distinct value.



