Skip to content

Commit

Permalink
catch any exception that comes from the import and deny the wrapper f…
Browse files Browse the repository at this point in the history
…rom running
  • Loading branch information
georgemccabe committed Aug 26, 2020
1 parent 46262c9 commit f39becb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metplus/wrappers/cyclone_plotter_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import cartopy.crs as ccrs
import cartopy.feature as cfeature
from cartopy.mpl.gridliner import LONGITUDE_FORMATTER, LATITUDE_FORMATTER
except ModuleNotFoundError as err_msg:
except:
wrapper_cannot_run = True

import produtil.setup
Expand Down
2 changes: 1 addition & 1 deletion metplus/wrappers/make_plots_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
wrapper_cannot_run = False
try:
from ush.plotting_scripts import plot_util
except ModuleNotFoundError as err_msg:
except:
wrapper_cannot_run = True


Expand Down

0 comments on commit f39becb

Please sign in to comment.