diff --git a/todoist/project.go b/todoist/project.go index 15895abb..7c52fa9f 100644 --- a/todoist/project.go +++ b/todoist/project.go @@ -14,10 +14,12 @@ type Project struct { } func NewProject(id int) *Project { + // Todoist seems to experience a lot of network issues on their side + // If we can't connect, handle it with an empty project until we can project, err := todoist.GetProject(id) - if err != nil { - panic(err) - } + if err != nil { + return &Project{} + } proj := &Project{ Project: project,