Re: [PATCH] python: fix get_property error when property doesn't exist

Subject: Re: [PATCH] python: fix get_property error when property doesn't exist

Date: Wed, 6 Feb 2019 20:24:49 +0100

To: David Bremner, notmuch@notmuchmail.org

Cc:

From: VA


Le 01/02/2019 à 14:45, David Bremner a écrit :
> Should we be throwing an appropriate exception rather than returning
> None? That seems more pythonic to me. In either case we should document
> the error handling.

What would it be? KeyError?
Though, some standard Python methods like dict.get return None in case 
the key doesn't exist.
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: