1
0
mirror of https://github.com/ihabunek/toot synced 2025-01-24 16:31:49 +01:00

Ignore vermin in one place

This commit is contained in:
Ivan Habunek 2024-09-29 09:38:23 +02:00
parent 0f6ae972b5
commit 3176fa0614
No known key found for this signature in database
GPG Key ID: 01DB3DD0D824504C

View File

@ -154,7 +154,7 @@ def urlencode_url(url: str) -> str:
def get_distro_name() -> Optional[str]:
"""Attempt to get linux distro name from platform (requires python 3.10+)"""
try:
return platform.freedesktop_os_release()["PRETTY_NAME"] # type: ignore
return platform.freedesktop_os_release()["PRETTY_NAME"] # type: ignore # novermin
except Exception:
pass