diff --git a/VERSION b/VERSION index 68f173e..2f55d74 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -master-v1.0.2 \ No newline at end of file +master-v1.0.3 \ No newline at end of file diff --git a/dataval/dataval.py b/dataval/dataval.py index 295d5fe..bd5f32f 100644 --- a/dataval/dataval.py +++ b/dataval/dataval.py @@ -111,6 +111,7 @@ def __init__(self, input_folders, output_folder=None, corr=False, validate=True, self.cursor.execute("SELECT COUNT(*) FROM sqlite_master WHERE type='table' AND name='diagnostics_corr';") self.corrections_done = bool(self.cursor.fetchone()[0] == 1) if self.corr and not self.corrections_done: + self.close() raise ValueError("Can not run dataval on corr when corrections have not been run") # Add method_used to the diagnostics table if it doesn't exist: @@ -236,7 +237,7 @@ def close(self): # Close the logging FileHandler: if hasattr(self, '_filehandler'): - logger = logging.getLogger(__name__) + logger = logging.getLogger('dataval') self._filehandler.close() logger.removeHandler(self._filehandler)