Skip to content

A bug in loading davobject #505

@zealseeker

Description

@zealseeker

try:
r = self.client.request(str(self.url))
if r.status and r.status == 404:
raise error.NotFoundError(errmsg(r))
except error.NotFoundError:
raise
except:
self.load_by_multiget()
self.data = vcal.fix(r.raw)

When exception is catched during r = self.client.request(str(self.url)), r is not assigned and self.data = vcal.fix(r.raw) will raise an excpetion.

Maybe we should move self.data = vcal.fix(r.raw) to the try block or simply return self.load_by_multiget() as originally in #475

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions