mirror of
https://github.com/mgeeky/decode-spam-headers.git
synced 2026-02-22 13:33:30 +01:00
MAESTRO: Fix linting config and formatting
This commit is contained in:
@@ -52,7 +52,11 @@ class Settings(BaseSettings):
|
||||
try:
|
||||
parsed = json.loads(text)
|
||||
if isinstance(parsed, list):
|
||||
return [str(item).strip() for item in parsed if str(item).strip()]
|
||||
return [
|
||||
str(item).strip()
|
||||
for item in parsed
|
||||
if str(item).strip()
|
||||
]
|
||||
except json.JSONDecodeError:
|
||||
pass
|
||||
return [item.strip() for item in text.split(",") if item.strip()]
|
||||
|
||||
Reference in New Issue
Block a user