Commit a9aed478 authored by Betoule Marc's avatar Betoule Marc
Browse files

correct bug in environment: call to logger instead of self.logger

parent d289c5a3
......@@ -280,7 +280,7 @@ class Environment(EnvironmentBase):
new_dict[k] = glo[k]
except KeyError:
logger.warning('Fail to save object %s in file %s'%(k,filename))
self.logger.warning('Fail to save object %s in file %s'%(k,filename))
f = file(filename,'w')
......@@ -301,9 +301,9 @@ class Environment(EnvironmentBase):
new_dict = pickle.load(f)
except IOError:
logger.warning('No such file: %s'%filename)
self.logger.warning('No such file: %s'%filename)
except UnpicklingError:
logger.warning('Failed to unpickle from file: %s'%filename)
self.logger.warning('Failed to unpickle from file: %s'%filename)
if param_name == '*':
param_name = new_dict.keys()
......@@ -311,7 +311,7 @@ class Environment(EnvironmentBase):
glo[k] = new_dict[k]
except KeyError:
logger.warning( 'Fail to load object %s from file %s'%(k,filename) )
self.logger.warning( 'Fail to load object %s from file %s'%(k,filename) )
def clean_tmp(self):
......@@ -343,7 +343,7 @@ class Environment(EnvironmentBase):
if param in glo:
strtag = strtag + param + '=' + str_web(glo[param])+' '
logger.warning( 'parameter '+param+' not in dictionary')
self.logger.warning( 'parameter '+param+' not in dictionary')
var_tag = strtag + ' <small>(<b>'+"%e %m - %R")+'</b>)</small> '
fn = self._worker.pipe.get_meta_file(seg)
with closing(file(fn, 'r')) as f:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment