Error presented when representing a closed cursor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HTD |
Fix Released
|
High
|
Andrew Hayzen |
Bug Description
Hi
When representing a closed cursor within HTD, an error is presented. I was expecting it to output '<HTD3.0 Closed Cursor>', to confirm that the cursor had been closed, however, it outputted this:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/
return "<HTD%s Closed Cursor>" % self.version
File "/usr/local/
self.
File "/usr/local/
self.
File "/usr/local/
fcntl.
ValueError: I/O operation on closed file
Thanks
Simon Bull
Related branches
- Andrew Hayzen: Approve
-
Diff: 45 lines (+5/-4)2 files modifiedsrc/htd30/__init__.py (+1/-1)
src/htd30/_objects/cursor.py (+4/-3)
Changed in htd: | |
status: | Triaged → In Progress |
importance: | Undecided → High |
summary: |
- Error presented when closing a cursor + Error presented when representing a closed cursor |
description: | updated |
Changed in htd: | |
status: | In Progress → Fix Committed |
Changed in htd: | |
status: | Fix Committed → Fix Released |
Hi Simon
Thank you for taking the time to report this bug and helping to make HTD better.
I can confirm that this error happens on my machine as well, therefore I have confirmed the bug.
Looks like the cursor is trying to talk to the file even though it is closed.
Andy