Skip to content

Commit

Permalink
Remove another disabled PyLint check.
Browse files Browse the repository at this point in the history
Fix a couple of remaining pre-formatted messages for logging output.
  • Loading branch information
da4089 committed Jan 31, 2025
1 parent af32039 commit ea1d9d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ disable=
# W
fixme,
keyword-arg-before-vararg,
logging-format-interpolation,
protected-access,
raise-missing-from,
unspecified-encoding,
Expand Down
5 changes: 2 additions & 3 deletions vobject/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1042,10 +1042,9 @@ def readComponents(streamOrString, validate=False, transform=True, ignoreUnreada
vline = textLineToContentLine(line, n)
except VObjectError as e:
if e.lineNumber is not None:
msg = "Skipped line {lineNumber}, message: {msg}"
logger.error("Skipped line %d, message: %s", e.lineNumber, str(e))
else:
msg = "Skipped a line, message: {msg}"
logger.error(msg.format(**{"lineNumber": e.lineNumber, "msg": str(e)}))
logger.error("Skipped a line, message: %s", str(e))
continue
else:
vline = textLineToContentLine(line, n)
Expand Down

0 comments on commit ea1d9d4

Please sign in to comment.