villebro commented on a change in pull request #7643: 7620: Start removing
dependencies on requests
URL:
https://github.com/apache/incubator-superset/pull/7643#discussion_r295305212
##########
File path: superset/utils/core.py
##########
@@ -50,7 +50,14 @@
import numpy
import pandas as pd
import parsedatetime
-from pydruid.utils.having import Having
+try:
+ from pydruid.utils.having import Having
+except ImportError:
+ print("""pydruid is an optional dependency, and
+ it seems it is not installed on your system. Aborting...
+ """)
+ from sys import exit
+ exit(1)
Review comment:
Same as above.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]