From d6bb858dc17c12514aa397e87fbdf06f9e068319 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Wed, 1 Jul 2015 15:36:39 +0100 Subject: fixup! schema: Separate loading code into separate file Change-Id: Icb7d87611b1b0e90a35e93c416db61234bf52af3 --- schema/parse.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'schema') 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` " -- cgit v1.2.1