Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ctreffe/mortimer
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Brachem committed Jul 23, 2020
2 parents 0873fa5 + f60a10d commit 8742945
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## Mortimer v0.6.1 (Released 2020-07-23)

### Fixed

* Fixed a bug that prevented correct logging of exceptions occuring during experiment execution.

* Fixed a bug that messed up the layout of the experiment page for inactive experiments.

## Mortimer v0.6.0 (Released 2020-07-13)

### Changed
Expand Down
6 changes: 4 additions & 2 deletions src/mortimer/templates/experiment.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
<div>
<h1>{{ experiment.title }}</h1>

{% if experiment.active == True %}

<div class="row">
<div class="col">

{% if experiment.active == True %}


<div class="input-group mb-3">
<div class="input-group-prepend">
<form method="POST"
Expand Down
9 changes: 3 additions & 6 deletions src/mortimer/web_experiments/alfredo.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,11 @@ def experiment():
resp.cache_control.no_cache = True
return resp
except Exception:
log = alfredlog.QueuedLoggingInterface("alfred3", f"exp.{str(experiment.id)}")
log = alfredlog.QueuedLoggingInterface("alfred3", f"exp.{str(experiment.exp_id)}")
log.session_id = sid
log.exception("Exception during experiment execution.")
# raise e
# logger.critical(
# msg=traceback.format_exc(), exp_id=str(experiment.exp_id), session_id=sid
# )
return render_template("errors/500_alfred.html")

abort(500)


@alfredo.route("/staticfile/<identifier>")
Expand Down

0 comments on commit 8742945

Please sign in to comment.