diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-07-01 15:36:39 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-07-01 15:36:39 +0100 |
commit | d6bb858dc17c12514aa397e87fbdf06f9e068319 (patch) | |
tree | 82c89a85b46ed0f63c5c60856787fbc31140a333 | |
parent | bd4fc18987a1d1d1ff8c7a7beb4b92dcfd9e30ed (diff) | |
download | definitions-d6bb858dc17c12514aa397e87fbdf06f9e068319.tar.gz |
fixup! schema: Separate loading code into separate file
Change-Id: Icb7d87611b1b0e90a35e93c416db61234bf52af3
-rw-r--r-- | schema/parse.py | 3 |
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` " |