Skip to content

Commit 52f1f70

Browse files
minor error message wording
1 parent 80b9de8 commit 52f1f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datajoint/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def query(self, query, args=(), *, as_dict=False, suppress_warnings=True, reconn
272272
# check cache first:
273273
use_query_cache = bool(self._query_cache)
274274
if use_query_cache and not re.match(r"\s*(SELECT|SHOW)", query):
275-
raise errors.DataJointError("Only SELECT query are allowed when query caching is on.")
275+
raise errors.DataJointError("Only SELECT queries are allowed when query caching is on.")
276276
if use_query_cache:
277277
if not config['query_cache']:
278278
raise errors.DataJointError("Provide filepath dj.config['query_cache'] when using query caching.")

0 commit comments

Comments
 (0)