Skip to content

Commit

Permalink
Fix geoviews only issuing a warning on critical import error
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Jun 26, 2019
1 parent 9e36229 commit bfeacd0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions satpy/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,13 +1170,8 @@ def to_geoviews(self, gvtype=None, datasets=None, kdims=None, vdims=None, dynami
to be passed to geoviews
"""
try:
import geoviews as gv
from cartopy import crs # noqa
except ImportError:
import warnings
warnings.warn("This method needs the geoviews package installed.")

import geoviews as gv
from cartopy import crs # noqa
if gvtype is None:
gvtype = gv.Image

Expand Down

0 comments on commit bfeacd0

Please sign in to comment.