Skip to content

Commit

Permalink
Removing try-catch
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandraLivadas committed Jul 8, 2020
1 parent 9ed7db6 commit c302982
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions modules/electrophysiology_browser/php/sessions.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,9 @@ class Sessions extends \NDB_Page
throw new \DomainException("Invalid session");
}
$session_id = intval($matches[1]);
try {
$this->timepoint = \NDB_Factory::singleton()->timepoint(
$session_id
);
$this->sessionID = $session_id;
} catch(\LorisException $e) {
throw $e;
}

$this->timepoint = \NDB_Factory::singleton()->timepoint($session_id);
$this->sessionID = $session_id;

$candID = $this->timepoint->getCandID();
$this->candidate = \Candidate::singleton($candID);
Expand Down

0 comments on commit c302982

Please sign in to comment.