Skip to content

Robustify get icon [don't crash on invalid or missing icon data]

Make get_return() validate the content that pykeepass hands to us, it can
contain anything, including random strings and None.
Return real valid integers between 0-68 or None in case of invalid/no content.

I know that this will conflict with @jfelder's icon cleanup branch, but it should be easy to fix. And being able to not throw up on possibly invalid content that we might get handed by safe file created with a different application is a good thing.

Merge request reports