summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--schema/parse.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/schema/parse.py b/schema/parse.py
index b3561df1..079b3b2b 100644
--- a/schema/parse.py
+++ b/schema/parse.py
@@ -194,8 +194,7 @@ def load_all_morphologies(session, store):
try:
session.commit()
except Exception as e:
- if DATABASE=='virtuoso' and \
- 'Virtuoso 42000 Error SR186: No permission to execute procedure DB' in e.message:
+ if 'Virtuoso 42000 Error SR186: No permission to execute procedure DB' in e.message:
print("Permission denied trying to update the database via the "
"SPARQL endpoint. By default this endpoint is read-only. "
"To enable write access, run the `isql` or `isql-vt` "