Skip to content

Commit

Permalink
Fix the error handling to be more general and Python 2 friendly.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexamici committed Feb 22, 2019
1 parent dec65e2 commit 3b3d9d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cfgrib/bindings.py
Expand Up @@ -613,7 +613,7 @@ def portable_handle_new_from_samples(samplename, product_kind):
try:
with open(sample_path) as file:
handle = codes_handle_new_from_file(file, product_kind)
except FileNotFoundError:
except Exception:
pass
return handle

Expand Down

0 comments on commit 3b3d9d9

Please sign in to comment.