We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2fd645 commit 8ebfd5dCopy full SHA for 8ebfd5d
mailpit/client/models.py
@@ -235,6 +235,8 @@ def millis_to_3_digit(isoformat: str) -> str:
235
if not millis:
236
seconds = _re.search(r":\d+(:\d+)", isoformat)
237
_log.debug(f"seconds: {seconds}")
238
+ if seconds is None:
239
+ raise ValueError("seconds may not be None")
240
return isoformat.replace(seconds.group(0), f"{seconds.group(0)}.000")
241
_log.debug(f"millis: {millis.group(0)}, {_d.Decimal(millis.group(0)):.03f}")
242
return isoformat.replace(
0 commit comments