From: Hunter Hammond Date: Thu, 23 May 2019 01:04:26 +0000 (-0700) Subject: Handle non-iterable (NoneType) comparison in LazyUUIDTaskSet X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/dcf2b8b93cbfc94a86b64d03c0c154a6db671b44?ds=inline;hp=922cec4a15255e90f69356886de250de034372d1 Handle non-iterable (NoneType) comparison in LazyUUIDTaskSet --- diff --git a/tasklib/lazy.py b/tasklib/lazy.py index cb268f3..e5b3492 100644 --- a/tasklib/lazy.py +++ b/tasklib/lazy.py @@ -106,7 +106,7 @@ class LazyUUIDTaskSet(object): return 'LazyUUIDTaskSet([{0}])'.format(', '.join(self._uuids)) def __eq__(self, other): - return set(t['uuid'] for t in other) == self._uuids + return (set(t['uuid'] for t in other) if other else set()) == self._uuids def __ne__(self, other): return not (self == other)