Skip to content

Commit de655df

Browse files
committed
arch: fix json erro with no card
1 parent 512d7f3 commit de655df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

devito/arch/archinfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def cbk(deviceid=0):
328328

329329
return gpu_info
330330

331-
except OSError:
331+
except (json.JSONDecodeError, OSError):
332332
pass
333333

334334
# *** Third try: `sycl-ls`, clearly only works with Intel cards

0 commit comments

Comments
 (0)