Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
pipelet
Pipelet
Commits
a9aed478
Commit
a9aed478
authored
Oct 05, 2010
by
Betoule Marc
Browse files
correct bug in environment: call to logger instead of self.logger
parent
d289c5a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
pipelet/environment.py
pipelet/environment.py
+5
-5
No files found.
pipelet/environment.py
View file @
a9aed478
...
...
@@ -280,7 +280,7 @@ class Environment(EnvironmentBase):
try
:
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'
)
pickle
.
dump
(
new_dict
,
f
)
f
.
close
()
...
...
@@ -301,9 +301,9 @@ class Environment(EnvironmentBase):
new_dict
=
pickle
.
load
(
f
)
f
.
close
()
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
)
f
.
close
()
if
param_name
==
'*'
:
param_name
=
new_dict
.
keys
()
...
...
@@ -311,7 +311,7 @@ class Environment(EnvironmentBase):
try
:
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
])
+
' '
else
:
logger
.
warning
(
'parameter '
+
param
+
' not in dictionary'
)
self
.
logger
.
warning
(
'parameter '
+
param
+
' not in dictionary'
)
var_tag
=
strtag
+
' <small>(<b>'
+
datetime
.
today
().
strftime
(
"%e %m - %R"
)
+
'</b>)</small> '
fn
=
self
.
_worker
.
pipe
.
get_meta_file
(
seg
)
with
closing
(
file
(
fn
,
'r'
))
as
f
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment