sniner / docuware-client

A Python client library for the REST API of DocuWare's DMS
BSD 3-Clause "New" or "Revised" License
7 stars 6 forks source link

The issues in date_from_string and datetime_from_string functions. #3

Closed altar91 closed 1 year ago

altar91 commented 1 year ago

Hi,

We realized that an inccorect date entries such as "3023-01-01" breaks the code and not just for this specific document but also all the remaining documents in that search dialog. We simply added a try catch statement and returned a None value on error. By doing so we easly identify those currepted documents and inform the owner so those can be fixed. Right now we are using this forked version of your library but we will be glad if you can address this issue so we can keep using the library.

Thank you in advance Altar

sniner commented 1 year ago

Thank you for raising this issue and for your contribution. I will upload the new version to PyPI shortly.