Sfoglia il codice sorgente

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

Prakash Ranade 8 anni fa
parent
commit
b8d5a298af
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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.