Skip to content

Commit

Permalink
Fix caught exception class
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jul 24, 2023
1 parent 101fa60 commit 0a59148
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ogc/bblocks/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ def validate_inner():
report.add_info('SHACL', shacl_report.text)
else:
report.add_error('SHACL', shacl_report.text)
except None as e:
query_error = f"\nfor SPARQL query {e.args(0)}" if e.args else ''
except ParseBaseException as e:
query_error = f"\nfor SPARQL query {e.args[0]}" if e.args else ''
report.add_error('SHACL', f"Error parsing SHACL validator: {e}{query_error}")

try:
Expand Down

0 comments on commit 0a59148

Please sign in to comment.