Skip to content

Commit 37bee35

Browse files
authored
Merge pull request #47778 from hahnjo/PlatformStatus-missing
Map unknown exit codes to PlatformStatus.PlatformNotAvailable
2 parents 53dcb8b + 8acff55 commit 37bee35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

HeterogeneousCore/Common/python/PlatformStatus.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ class PlatformStatus(enum.IntEnum):
77
PlatformNotAvailable = 1 # the platform is not available for this architecture, OS or compiler
88
RuntimeNotAvailable = 2 # the runtime could not be initialised
99
DevicesNotAvailable = 3 # there are no visible, usable devices
10+
11+
@classmethod
12+
def _missing_(cls, value):
13+
return cls.PlatformNotAvailable

0 commit comments

Comments
 (0)