Skip to content

Commit 40ef769

Browse files
committed
fix deprecation warning
1 parent 8c1b42d commit 40ef769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mergin/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def user_agent_info(self):
163163
try:
164164
from pip._vendor import distro
165165

166-
system_version = distro.linux_distribution()[0]
166+
system_version = distro.id().capitalize()
167167
except ModuleNotFoundError: # pip may not be installed...
168168
system_version = "Linux"
169169
elif platform.system() == "Windows":

0 commit comments

Comments
 (0)