diff --git a/superset/results_backends.py b/superset/results_backends.py index 541c0091dcde6..824eb7b2274d3 100644 --- a/superset/results_backends.py +++ b/superset/results_backends.py @@ -9,7 +9,7 @@ try: import cPickle as pickle -except: +except ImportError: import pickle import logging diff --git a/tests/results_backends_tests.py b/tests/results_backends_tests.py index 9f4e8dc6b26b8..146759c5f0418 100644 --- a/tests/results_backends_tests.py +++ b/tests/results_backends_tests.py @@ -1,6 +1,6 @@ try: import cPickle as pickle -except: +except ImportError: import pickle import mock