Skip to content

Commit

Permalink
ignore os.unlink errors in Tagger.info
Browse files Browse the repository at this point in the history
  • Loading branch information
kmike committed Apr 10, 2016
1 parent 5ba12e3 commit 4e77222
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pycrfsuite/_pycrfsuite.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,10 @@ cdef class Tagger(object):
for line in f:
parser.feed(line.decode('utf8'))
finally:
os.unlink(name)
try:
os.unlink(name)
except OSError:
pass
return parser.result

def _check_model(self, name):
Expand Down

0 comments on commit 4e77222

Please sign in to comment.