1
0
mirror of https://github.com/tiyn/stud.ip-crawler.git synced 2025-11-19 11:39:45 +01:00

bugfixes: included error message for large files - skipping them

This commit is contained in:
TiynGER
2020-11-11 00:45:30 +01:00
parent 9e6355f7de
commit 3d8d71c3fd
6 changed files with 48 additions and 48 deletions

View File

@@ -150,7 +150,7 @@ class Studip:
doc_file.write(chunk)
self.db.set_last_file_dl(str(doc), str(int(time.time())))
except OSError:
log.critical("Error while writing to the file " + doc_name)
log.warning("Error while writing to the file " + doc_name)
def get_subdirs(self, folder):
"""Get all the subdirectories of a given folder.