Added signal catching and handling in C and Cython
This commit is contained in:
@ -19,6 +19,8 @@ import time
|
||||
import math
|
||||
import sys
|
||||
|
||||
from cpython.exc cimport PyErr_CheckSignals
|
||||
|
||||
|
||||
__title__="Annotate views with new tags and edit existing annotations"
|
||||
|
||||
@ -351,6 +353,7 @@ def run(config):
|
||||
# Editions at line level
|
||||
sequenceTagger = sequenceTaggerGenerator(config, taxo=taxo)
|
||||
for i in range(len(o_view)):
|
||||
PyErr_CheckSignals()
|
||||
pb(i)
|
||||
sequenceTagger(o_view[i])
|
||||
|
||||
|
Reference in New Issue
Block a user