rtemstoolkit: Support more Linux distributions

The platform.dist() function is not always available.
This commit is contained in:
Sebastian Huber 2020-03-05 10:25:38 +01:00
parent 2444acb0ad
commit 00b9f1d825

View File

@ -83,8 +83,9 @@ def overrides():
try:
distro = platform.dist()[0]
distro_ver = float(platform.dist()[1])
except ValueError:
except (AttributeError, ValueError):
# Non LSB distro found, use failover"
distro = ''
pass
# Non LSB - fail over to issue