|
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
caldav/caldav/calendarobjectresource.py
Lines 625 to 633 in a6c39da
When exception is catched during
r = self.client.request(str(self.url)), r is not assigned andself.data = vcal.fix(r.raw)will raise an excpetion.Maybe we should move
self.data = vcal.fix(r.raw)to the try block or simplyreturn self.load_by_multiget()as originally in #475