diff --git a/gns3server/crash_report.py b/gns3server/crash_report.py index 26071d86..a7b2734d 100644 --- a/gns3server/crash_report.py +++ b/gns3server/crash_report.py @@ -21,6 +21,7 @@ import struct import aiohttp import platform import locale +import distro try: import raven @@ -98,7 +99,7 @@ class CrashReport: "os:release": platform.release(), "os:win_32": " ".join(platform.win32_ver()), "os:mac": "{} {}".format(platform.mac_ver()[0], platform.mac_ver()[2]), - "os:linux": " ".join(platform.linux_distribution()), + "os:linux": " ".join(distro.linux_distribution()), "aiohttp:version": aiohttp.__version__, "python:version": "{}.{}.{}".format(sys.version_info[0], sys.version_info[1], diff --git a/requirements.txt b/requirements.txt index edd65a31..25710c78 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,4 +8,5 @@ psutil>=3.0.0 zipstream>=1.1.4 typing>=3.5.3.0 # Otherwise yarl fails with python 3.4 prompt-toolkit==1.0.15 -async-timeout<3.0.0 # pyup: ignore; 3.0 drops support for python 3.4 \ No newline at end of file +async-timeout<3.0.0 # pyup: ignore; 3.0 drops support for python 3.4 +distro>=1.3.0 \ No newline at end of file