Added logging before throwing exception

pull/1070/head
teslov 2021-10-11 20:22:58 +03:00
rodzic cd0f1dedee
commit d63ee48aa3
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -475,6 +475,7 @@ class Task(models.Model):
if os.path.isfile(checked_path_to_file):
copyfile(checked_path_to_file, zip_path)
except SuspiciousFileOperation as e:
logger.error("Error due importing assets from {} for {} in cause of path checking error".format(self.import_url, self))
raise NodeServerError(e)
else:
try: