dennisvang / tufup

Automated updates for stand-alone Python applications.
MIT License
71 stars 1 forks source link

Always return dict for custom metadata #132

Closed dennisvang closed 3 months ago

dennisvang commented 3 months ago

Always return a dict from TargetMeta.custom and custom_internal (instead optional dict).

This breaks any code that explicitly relies on the possibility that custom metadata is None, for example:

if my_meta.custom is None:
    # this will never happen...
    ...

Code that simply checks for custom metadata, as in if my_meta.custom: ..., or if my_meta.custom is not None: ..., is not affected.

fixes #131