Skip to content

Commit 1e5fe7c

Browse files
committed
add error msg
1 parent 33d71eb commit 1e5fe7c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

python-package/basedosdados/backend.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,12 @@ def _execute_query(
496496
Returns:
497497
Dict: GraphQL response.
498498
"""
499+
if not _backend_dependencies:
500+
raise BaseDosDadosMissingDependencyException(
501+
"Optional dependencies for backend interaction are not installed. "
502+
'Please install basedosdados with the "upload" extra, such as:'
503+
"\n\npip install basedosdados[upload]"
504+
)
499505

500506
client_ = (
501507
self._get_client(

0 commit comments

Comments
 (0)