Commit e373f64c authored by Nathalie Rousse's avatar Nathalie Rousse
Browse files

correction (to_log : add try)

parent 77226b9f
......@@ -286,12 +286,15 @@ class ActivityViewMixin(LimitedAccessViewMixin, RenderViewMixin,
"""Records activity event into activity log file"""
if LOG_ACT_ACTIVE :
text = str(datetime.datetime.now())
text += " -R- " + url_txt
text += " -D- " + str(data) + "\n"
f = open(LOG_ACT_FILE, "a")
f.write(text)
f.close()
try :
text = str(datetime.datetime.now())
text += " -R- " + url_txt
text += " -D- " + str(data) + "\n"
f = open(LOG_ACT_FILE, "a")
f.write(text)
f.close()
except :
pass
def init_activity(self, LOGGER, data):
"""initial build
......
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