From 9e6355f7de6535606f91dda4273db9c15fb94a81 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Tue, 10 Nov 2020 21:10:34 +0100 Subject: [PATCH] bugfixes: keep searching for error with unwritable files --- src/studip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/studip.py b/src/studip.py index c8c54ae..ba9ec0b 100755 --- a/src/studip.py +++ b/src/studip.py @@ -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):