We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d250e6 commit 946db6fCopy full SHA for 946db6f
src/xmake_python/xmake.py
@@ -1,13 +1,12 @@
1
import json
2
import os
3
-
4
from dataclasses import dataclass
5
-from subprocess import run
6
from pathlib import Path
7
-from shlex import split, join
+from shlex import join, split
+from subprocess import run
8
9
-from .builder.wheel_tag import WheelTag
10
from ._logging import rich_print
+from .builder.wheel_tag import WheelTag
11
12
13
@dataclass
@@ -106,7 +105,11 @@ def show(self):
106
105
"--json",
107
]
108
output = self.check_output(cmd)
109
- targets = json.loads(output)
+ targets = []
+ try:
110
+ targets = json.loads(output)
111
+ except json.decoder.JSONDecodeError:
112
+ print(f"{output}")
113
kinds = []
114
for target in targets:
115
kind = 0
0 commit comments