Skip to content

Commit

Permalink
#30: fix bug and set_trace for debugging on another machine
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenwh committed Jul 10, 2019
1 parent 5b1a5d9 commit b3ef221
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion geospaas_wind/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ def process(self, uri, force=False, *args, **kwargs):
try:
w = wind_from_sar_and_arome_forecast(uri)
except (TooHighResolutionError, PolarizationError, ObjectDoesNotExist) as e:
warnings.warn(e.file + ': ' + e.msg)
try:
warnings.warn(e.file + ': ' + e.msg)
except AttributeError:
import ipdb
ipdb.set_trace()
warnings.warn(e)
return None, False

metadata = w.get_metadata()
Expand Down

0 comments on commit b3ef221

Please sign in to comment.