Browse Source

HUE-3287 [core] Django 1.11 upgrade
- Fixing metrics initial run

Prakash Ranade 7 years ago
parent
commit
b8d5a298af
1 changed files with 1 additions and 0 deletions
  1. 1 0
      desktop/core/src/desktop/lib/metrics/file_reporter.py

+ 1 - 0
desktop/core/src/desktop/lib/metrics/file_reporter.py

@@ -39,6 +39,7 @@ class FileReporter(Reporter):
         os.makedirs(dirname)
       except OSError, e:
         LOG.error('failed to make the directory %s: %s' % (dirname, e))
+      return
 
     # Write the metrics to a temporary file, then atomically
     # rename the file to the real location.