Skip to content

Commit

Permalink
Improved exception message when SyclDevice could not created from inv…
Browse files Browse the repository at this point in the history
…alid filter string
  • Loading branch information
oleksandr-pavlyk committed Aug 28, 2022
1 parent 5b3a819 commit 3f3f25a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dpctl/_sycl_device.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ cdef class SyclDevice(_SyclDevice):
ret = self._init_from_selector(DSRef)
if ret == -1:
raise SyclDeviceCreationError(
"Could not create a SyclDevice with the selector string"
"Could not create a SyclDevice with the selector string "
"'{selector_string}'".format(selector_string=arg)
)
elif isinstance(arg, _SyclDevice):
ret = self._init_from__SyclDevice(arg)
Expand Down

0 comments on commit 3f3f25a

Please sign in to comment.