Open stavros11 opened 4 hours ago
Yes, the solution should be similar to the one in https://github.com/qiboteam/qibo/pull/1505: if you know that it's going to be used in a try ... except
, you should avoid usage of raise_error()
in favor of a plain raise
.
raise_error()
will first log, then raise. So, if it already logged, it is impossible to take it back, even if the error gets subsequently caught.
The following script
produces this output
It does not fail, and the loaded circuit
cl
is usable, so I would not consider it very urgent, however it is weird that the error is printed. This is most likely due to sometry
-except
in the loader.