Skip to content

Commit 7835d95

Browse files
authored
Merge pull request #1027 from akrherz/lint
📝 Address some lint
2 parents 5ed4e3c + 27cd4f2 commit 7835d95

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/pyiem/models/gridnav.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def affine_image(self):
112112
)
113113

114114
@model_validator(mode="before")
115+
@classmethod
115116
def complete_definition(cls, values):
116117
"""Use information that was provided to compute other fields."""
117118
# We have required fields left_edge, bottom_edge

src/pyiem/ncei/ds3505.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
https://www1.ncdc.noaa.gov/pub/data/ish/ish-format-document.pdf
44
"""
55

6-
# pylint: disable=too-many-lines
76
import json
87
import re
98
import warnings
@@ -1445,8 +1444,8 @@ def parser(msg, call_id, add_metar=False):
14451444
data["extra"] = {}
14461445
try:
14471446
parse_extra(data, msg[105:])
1448-
except Exception:
1449-
pass
1447+
except Exception as exp:
1448+
LOG.exception(exp)
14501449
if add_metar:
14511450
try:
14521451
gen_metar(data)

src/pyiem/webutil.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def __init__(self, **kwargs):
9898
raise IncompleteWebRequest(errors) from e
9999

100100
@field_validator("*", mode="before")
101+
@classmethod
101102
def xss_protect(cls, v):
102103
"""Protect against XSS attacks."""
103104
if isinstance(v, str) and nh3.clean(v) != v:

0 commit comments

Comments
 (0)