Skip to content

Commit

Permalink
Remove stray raise in library code
Browse files Browse the repository at this point in the history
Added in galaxyproject#15340 by accident.
Fixes:

```
RuntimeError: No active exception to reraise
  File "galaxy/web/framework/decorators.py", line 337, in decorator
    rval = func(self, trans, *args, **kwargs)
  File "galaxy/webapps/galaxy/api/library_contents.py", line 130, in index
    for content in traverse(library.root_folder):
  File "galaxy/webapps/galaxy/api/library_contents.py", line 84, in traverse
    can_access, folder_ids = trans.app.security_agent.check_folder_contents(
  File "galaxy/model/security.py", line 1510, in check_folder_contents
    raise
```
in https://sentry.galaxyproject.org/share/issue/38df4490ff61415090c319ad0e16f1fa/
  • Loading branch information
mvdbeek committed Apr 18, 2023
1 parent 0542ebf commit b503ef8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/galaxy/model/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,6 @@ def check_folder_contents(self, user, roles, folder, hidden_folder_ids=""):
return True, ""
action = self.permitted_actions.DATASET_ACCESS

raise
lddas = (
self.sa_session.query(self.model.LibraryDatasetDatasetAssociation)
.join("library_dataset")
Expand Down

0 comments on commit b503ef8

Please sign in to comment.