Fix issues with special compiled binary with own version schema (#2783)

This commit is contained in:
Pascal Vizeli 2021-04-06 12:02:39 +02:00 committed by GitHub
parent 13910d44bf
commit fb1eb44d82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ from pathlib import Path
from typing import Any, Dict, Optional from typing import Any, Dict, Optional
import attr import attr
from awesomeversion import AwesomeVersion from awesomeversion import AwesomeVersion, AwesomeVersionCompare
import docker import docker
import requests import requests
@ -56,7 +56,10 @@ class DockerInfo:
@property @property
def supported_version(self) -> bool: def supported_version(self) -> bool:
"""Return true, if docker version is supported.""" """Return true, if docker version is supported."""
return self.version >= MIN_SUPPORTED_DOCKER try:
return self.version >= MIN_SUPPORTED_DOCKER
except AwesomeVersionCompare:
return False
@property @property
def support_cpu_realtime(self) -> bool: def support_cpu_realtime(self) -> bool: