Skip to content

Commit 2709ee4

Browse files
status error handling change
1 parent 77c81e2 commit 2709ee4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

dpctl/_sycl_queue.pyx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,16 +239,14 @@ cdef class SyclQueue(_SyclQueue):
239239
raise SyclQueueCreationError(
240240
"SYCL Context could not be created from '{}'.".format(arg)
241241
)
242-
elif status == -4:
242+
elif status == -4 or status == -6:
243243
if len_args == 2:
244244
arg = args
245245
raise SyclQueueCreationError(
246246
"SYCL Queue failed to be created from '{}'.".format(arg)
247247
)
248248
elif status == -5:
249249
raise TypeError("Input capsule {} contains a null pointer or could not be renamed".format(arg))
250-
elif status == -6:
251-
raise "SYCL Queue failed to be created from '{}'.".format(arg)
252250

253251
cdef int _init_queue_from__SyclQueue(self, _SyclQueue other):
254252
""" Copy data container _SyclQueue fields over.

0 commit comments

Comments
 (0)