Skip to content

Commit d7cf6da

Browse files
José Carlos Ferreirosekipaolo
José Carlos Ferreiro
authored andcommitted
extra condition to avoid print info of NoneType object (#35)
1 parent 7b20c2e commit d7cf6da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pypingdom/maintenance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __repr__(self):
3636
", ".join(checks))
3737

3838
def to_json(self):
39-
check_ids = [str(check._id) for check in self.checks]
39+
check_ids = [str(check._id) for check in self.checks if check]
4040
data = {
4141
# "__csrf_magic": "",
4242
# "id": "",

0 commit comments

Comments
 (0)