Skip to content

Commit

Permalink
Bugfix hdfeos
Browse files Browse the repository at this point in the history
Checkfile was using an undefined variable

Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>
  • Loading branch information
mraspaud committed Feb 4, 2016
1 parent a7e0c87 commit c338b03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mpop/satin/hdfeos_l1b.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def get_filename(template, time_slot):
return file_list[0]


def check_filename(template):
file_list = glob.glob(template)
def check_filename(tmpl):
file_list = glob.glob(tmpl)
if len(file_list) > 1:
raise IOError("More than 1 file matching template %s", tmpl)
elif len(file_list) == 0:
Expand Down

0 comments on commit c338b03

Please sign in to comment.