#1060 closed defect (fixed)
Ctrc-C is not handled properly in bibdocfile
| Reported by: | adeiana | Owned by: | skaplun |
|---|---|---|---|
| Priority: | major | Milestone: | v1.2 |
| Component: | BibDocFile | Version: | maint-1.1 |
| Keywords: | Cc: |
Description
You can refer to this ticket if you have access
https://inspirert.cern.ch/Ticket/Display.html?id=203418
When running a script and pressing Ctrl-C it is handled as an error to read from the disk and list of md5sums is reset.
Attachments (1)
Change History (9)
Changed 12 months ago by adeiana
comment:1 Changed 3 months ago by skaplun
- Status changed from new to infoneeded_new
comment:2 Changed 3 months ago by skaplun
- Status changed from infoneeded_new to new
Ah nope, I see. Just later there is the .update() call in case of generic InvenioWebSubmitFileError. D'oh.
comment:3 Changed 3 months ago by skaplun
- Milestone set to v1.2
- Owner set to skaplun
- Status changed from new to assigned
- Version set to maint-1.1
comment:4 Changed 3 months ago by skaplun
- Status changed from assigned to in_merge
Improvements in this sense are now implemented in my public branch sam/1060-fix-md5-exception-handling
comment:5 Changed 3 months ago by simko
Thanks, I've fixed one issue (register_exception(alert_admin(True)) and I'll merge shortly.
comment:6 Changed 3 months ago by skaplun
- Resolution set to fixed
- Status changed from in_merge to closed
comment:7 Changed 3 months ago by skaplun
comment:8 Changed 3 months ago by skaplun
Note: See
TracTickets for help on using
tickets.

Hi Alessio,
I just checked this, and actually, also from your attachment, as you can see from:
http://invenio-software.org/attachment/ticket/1060/traceback.txt#L150
The exception is caught in general, and only registered. the update() of the MD5 is only called in case of real IOError, not KeyboardInterrupt (a.k.a. Ctrl-C)