From 6a344539a0942aadf127612e2b11540a3218d564 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Tue, 29 May 2018 14:49:06 -0400 Subject: [PATCH] moved import distro into conditional statement that only runs on Linux --- lbrynet/core/system_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/core/system_info.py b/lbrynet/core/system_info.py index abdca9145..3e81e8011 100644 --- a/lbrynet/core/system_info.py +++ b/lbrynet/core/system_info.py @@ -2,7 +2,6 @@ import platform import json import subprocess import os -import distro from urllib2 import urlopen, URLError from lbryschema import __version__ as lbryschema_version @@ -38,6 +37,7 @@ def get_platform(get_ip=True): "build": build_type.BUILD, # CI server sets this during build step } if p["os_system"] == "Linux": + import distro p["distro"] = distro.info() p["desktop"] = os.environ.get('XDG_CURRENT_DESKTOP', 'Unknown')