1
0
mirror of https://github.com/tiyn/stud.ip-crawler.git synced 2025-04-01 15:37:47 +02:00

bugfixes: keep searching for error with unwritable files

This commit is contained in:
TiynGER 2020-11-10 21:10:34 +01:00
parent 961ab04f5c
commit 9e6355f7de

View File

@ -149,7 +149,7 @@ class Studip:
#progbar.update(len(chunk))
doc_file.write(chunk)
self.db.set_last_file_dl(str(doc), str(int(time.time())))
except FileNotFoundError:
except OSError:
log.critical("Error while writing to the file " + doc_name)
def get_subdirs(self, folder):