Skip to content

Commit 14f8155

Browse files
add sane.exit() to example
Currently if example is run without sane.exit(), I see the following error when script is ran next time: `python _sane.error: Invalid argument` Adding in sane.exit() avoids this error from happening on next run
1 parent d826de5 commit 14f8155

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

example.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,8 @@
8989
# Close the device
9090
#
9191
dev.close()
92+
93+
#
94+
# Exiting sane
95+
#
96+
sane.exit()

0 commit comments

Comments
 (0)