You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Picoscope object raise an exception if it can't be opened (which is fine), but if catched, another one is raised straight after at the garbage collector deletion, from _lowLevelCloseUnit in the Picobase.close() method, and generate an Exception ignored message, which is annoying when printing other informative messages about an emulated one taking over. Can the OSError be catched in the close() method ?
That's not much of a big issue, but just wanted to mention it.
The text was updated successfully, but these errors were encountered:
Hi there, the close() method also rise a AttributeError exception when the self.handle attribute is not found, which happens when the picoscope is not connected and we "delete" the object (by assigning the variable to another object for example). I'll clean the method.
elechapt
added a commit
to elechapt/pico-python
that referenced
this issue
Jun 26, 2023
The
Picoscope
object raise an exception if it can't be opened (which is fine), but if catched, another one is raised straight after at the garbage collector deletion, from_lowLevelCloseUnit
in thePicobase.close()
method, and generate anException ignored
message, which is annoying when printing other informative messages about an emulated one taking over. Can theOSError
be catched in the close() method ?That's not much of a big issue, but just wanted to mention it.
The text was updated successfully, but these errors were encountered: