Project

General

Profile

Bug #18176

Don't fail if session_experiment is not set

Added by Marc Mengel almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
11/09/2017
Due date:
% Done:

100%

Estimated time:
First Occurred:
Scope:
Internal
Experiment:
-
Stakeholders:
Duration:

Description

Currently if we end up with a Experimenter entry where "session_experiment" is an empty string,
the user just gets a crash dump and we cannot proceed.

An internal error occurred, data has been logged. Please report the occurrance to POMS administrators.
Traceback (most recent call last):
File "/home/poms/venvs/poms_v2_1_1/lib/python3.3/site-packages/cherrypy/_cprequest.py", line 667, in respond
self.hooks.run('before_handler')
File "/home/poms/venvs/poms_v2_1_1/lib/python3.3/site-packages/cherrypy/_cprequest.py", line 114, in run
raise exc
File "/home/poms/venvs/poms_v2_1_1/lib/python3.3/site-packages/cherrypy/_cprequest.py", line 104, in run
hook()
File "/home/poms/venvs/poms_v2_1_1/lib/python3.3/site-packages/cherrypy/_cprequest.py", line 63, in __call__
return self.callback(**self.kwargs)
File "/home/poms/current/poms/webservice/service.py", line 296, in augment_params
root.jinja_env.globals.update(dict(exp_obj=SessionExperiment(exp_obj),
File "/home/poms/current/poms/webservice/service.py", line 284, in __init__
self.experiment = exp.experiment
AttributeError: 'NoneType' object has no attribute 'experiment'

Associated revisions

Revision 1e931a93 (diff)
Added by Marc Mengel almost 3 years ago

draft of fix for issue #18176

History

#1 Updated by Marc Mengel almost 3 years ago

  • % Done changed from 0 to 20

Draft of fix in 1e931a9 , needs testing, etc.

#2 Updated by Marc Mengel almost 3 years ago

  • Status changed from New to Resolved
  • % Done changed from 20 to 100

#3 Updated by Anna Mazzacane over 2 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF