From 0e325085d7cebbba5f301d472e83ce0ba58d1f15 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 26 Dec 2015 16:53:17 +0100 Subject: [PATCH] LazyUUIDTask: Properly handle equality with None --- tasklib/lazy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasklib/lazy.py b/tasklib/lazy.py index 527a995..aa2c065 100644 --- a/tasklib/lazy.py +++ b/tasklib/lazy.py @@ -32,7 +32,7 @@ class LazyUUIDTask(object): return getattr(self, name) def __eq__(self, other): - if other['uuid']: + if other and other['uuid']: # For saved Tasks, just define equality by equality of uuids return self['uuid'] == other['uuid'] -- 2.39.2