FileNoteFoundError in FindInFiles extension
smathot opened this issue · 0 comments
smathot commented
If a file is deleted after being listed but before being read, the following Exception occurs:
Traceback (most recent call last):
File "/home/sebastiaan/anaconda3/envs/opensesame-py3/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/home/sebastiaan/anaconda3/envs/opensesame-py3/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/home/sebastiaan/git/rapunzel/opensesame_extensions/FindInFiles/FindInFiles.py", line 75, in find_text_in_files
haystack = safe_read(path)
File "/home/sebastiaan/git/OpenSesame/libopensesame/py3compat.py", line 82, in safe_read
with open(path, u'r') as fd:
FileNotFoundError: [Errno 2] No such file or directory: '/home/sebastiaan/git/osweb/public_html/css/osweb.ff03dd8deb313c2316cb.bundle.css.map'