From 7af6c3cb9cb7c38c0369a3e143b3e776ef7b63dd Mon Sep 17 00:00:00 2001 From: Expo on server Date: Tue, 26 May 2020 00:54:41 +0100 Subject: [PATCH] Allow being unable to open local LOGFILE. --- core/models.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/models.py b/core/models.py index 5b9f48c..d84993a 100644 --- a/core/models.py +++ b/core/models.py @@ -39,10 +39,8 @@ try: filename=settings.LOGFILE, filemode='w') except: - subprocess.call(settings.FIX_PERMISSIONS) - logging.basicConfig(level=logging.DEBUG, - filename=settings.LOGFILE, - filemode='w') +# Opening of file for writing is going to fail currently, so decide it doesn't matter for now + pass #This class is for adding fields and methods which all of our models will have. class TroggleModel(models.Model):