1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-04-15 23:47:24 +02:00

Fixed W293 (blank-line-with-whitespace): Blank line contains whitespace

This commit is contained in:
Teal Dulcet
2023-12-22 07:12:50 -08:00
committed by Joshua Tauberer
parent 555ecc1ebb
commit 6bfd1e5140
5 changed files with 12 additions and 12 deletions

View File

@@ -344,7 +344,7 @@ def scan_mail_log_line(line, collector):
# Replaced the dateutil parser for a less clever way of parser that is roughly 4 times faster.
# date = dateutil.parser.parse(date)
# strptime fails on Feb 29 with ValueError: day is out of range for month if correct year is not provided.
# See https://bugs.python.org/issue26460
date = datetime.datetime.strptime(str(NOW.year) + ' ' + date, '%Y %b %d %H:%M:%S')