Skip to content

Commit cedfd09

Browse files
committed
Fix
1 parent 7f5019a commit cedfd09

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

inbox/events/recurring.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ def parse_rrule(event): # type: ignore[no-untyped-def] # noqa: ANN201
8989

9090
return rule
9191
except Exception as e:
92-
log.exception(
93-
"Error parsing RRULE entry", event_id=event.id, error=e
94-
)
92+
log.exception("Error parsing RRULE entry", event_id=event.id)
9593
return None
9694

9795

inbox/models/event.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -510,19 +510,15 @@ def __init__(self, **kwargs) -> None: # type: ignore[no-untyped-def]
510510
try:
511511
self.unwrap_rrule()
512512
except Exception as e:
513-
log.exception(
514-
"Error parsing RRULE entry", event_id=self.id, error=e
515-
)
513+
log.exception("Error parsing RRULE entry", event_id=self.id)
516514

517515
# FIXME @karim: use an overrided property instead of a reconstructor.
518516
@reconstructor
519517
def reconstruct(self) -> None:
520518
try:
521519
self.unwrap_rrule()
522520
except Exception as e:
523-
log.exception(
524-
"Error parsing stored RRULE entry", event_id=self.id, error=e
525-
)
521+
log.exception("Error parsing stored RRULE entry", event_id=self.id)
526522

527523
def inflate(self, start=None, end=None): # type: ignore[no-untyped-def] # noqa: ANN201
528524
# Convert a RecurringEvent into a series of InflatedEvents

inbox/sendmail/smtp/postel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def _connect(self, host, port): # type: ignore[no-untyped-def]
161161
self.connection.connect(host, port)
162162
except OSError as e:
163163
# 'Connection refused', SSL errors for non-TLS connections, etc.
164-
log.exception("SMTP connection error", server_error=e.strerror)
164+
log.exception("SMTP connection error")
165165
msg = _transform_ssl_error(e.strerror)
166166
raise SendMailException(msg, 503) # noqa: B904
167167

@@ -362,7 +362,7 @@ def _send(self, recipients, msg): # type: ignore[no-untyped-def]
362362
)
363363
except smtplib.SMTPException as err:
364364
last_error = err
365-
self.log.exception("Error sending", error=err)
365+
self.log.exception("Error sending")
366366

367367
assert last_error is not None
368368
self.log.error(

0 commit comments

Comments
 (0)