Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
62f78013
Unverified
Commit
62f78013
authored
1 year ago
by
Xavier Robin
Browse files
Options
Downloads
Patches
Plain Diff
refactor: make error messages more consistent in actions
parent
9169bbc8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
actions/ost-compare-ligand-structures
+3
-4
3 additions, 4 deletions
actions/ost-compare-ligand-structures
actions/ost-compare-structures
+0
-2
0 additions, 2 deletions
actions/ost-compare-structures
with
3 additions
and
6 deletions
actions/ost-compare-ligand-structures
+
3
−
4
View file @
62f78013
...
...
@@ -302,7 +302,6 @@ def _CheckCompoundLib():
ost.LogError("A compound library is required for this action. "
"Please refer to the OpenStructure website: "
"https://openstructure.org/docs/conop/compoundlib/.")
sys.tracebacklimit = 0
raise RuntimeError("No compound library found")
...
...
@@ -333,8 +332,6 @@ def _LoadStructure(structure_path, sformat, fault_tolerant, bu_id):
The returned structure has structure_path attached as structure name
"""
if not os.path.exists(structure_path):
raise Exception(f"file not found: {structure_path}")
# increase loglevel, as we would pollute the info log with weird stuff
ost.PushVerbosityLevel(ost.LogLevel.Error)
...
...
@@ -591,8 +588,10 @@ def _Process(model, model_ligands, reference, reference_ligands, args):
def _Main():
args = _ParseArgs()
_CheckCompoundLib()
ost.PushVerbosityLevel(args.verbosity)
if args.verbosity < 4:
sys.tracebacklimit = 0
_CheckCompoundLib()
try:
# Load structures
reference_format = _GetStructureFormat(args.reference,
...
...
This diff is collapsed.
Click to expand it.
actions/ost-compare-structures
+
0
−
2
View file @
62f78013
...
...
@@ -578,8 +578,6 @@ def _LoadStructure(structure_path, sformat, fault_tolerant, bu_id):
The returned structure has structure_path attached as structure name
"""
if not os.path.exists(structure_path):
raise Exception(f"file not found: {structure_path}")
# increase loglevel, as we would pollute the info log with weird stuff
ost.PushVerbosityLevel(ost.LogLevel.Error)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment