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:
parent
0f6ae972b5
commit
3176fa0614
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user