summaryrefslogtreecommitdiff
path: root/addons/google_calendar/models
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-06-05 16:27:49 +0200
committerChristophe Simonis <chs@odoo.com>2018-06-05 16:27:49 +0200
commitaba8c2b8fbfb024652f0a080c657eb2369088eda (patch)
treebbb10ed85d2ae7f0bc1e77234fc1d24d9067de8d /addons/google_calendar/models
parentfc5e61b63d1357f4c89e68e108de1ade21db724f (diff)
parent1b272a20504e16e0c170ea717f5bcf63d38e7cb5 (diff)
[MERGE] forward port branch 11.0 up to 1b272a20504
Diffstat (limited to 'addons/google_calendar/models')
-rw-r--r--addons/google_calendar/models/google_calendar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/google_calendar/models/google_calendar.py b/addons/google_calendar/models/google_calendar.py
index df0df9e3388..b9392bec08b 100644
--- a/addons/google_calendar/models/google_calendar.py
+++ b/addons/google_calendar/models/google_calendar.py
@@ -842,7 +842,7 @@ class GoogleCalendar(models.AbstractModel):
try:
# if already deleted from gmail or never created
recs.delete_an_event(current_event[0])
- except Exception as e:
+ except requests.exceptions.HTTPError as e:
if e.response.status_code in (401, 410,):
pass
else: