Skip to content

Commit

Permalink
fix index error
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Aug 9, 2017
1 parent 3e03ed9 commit f5314c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hpsspy/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def process_missing(missing_cache, disk_root, hpss_root, dirmode='2770',
Lfile = None
htar_dir = [basename(h).split('_')[-1].split('.')[0]]
if 'X' in htar_dir[0]:
htar_re = re.compile(htar_dir.replace('X', '?') + '$')
htar_re = re.compile(htar_dir[0].replace('X', '?') + '$')
htar_dir = [d for d in os.listdir(full_chdir)
if isdir(join(full_chdir, d)) and
htar_re.match(d) is not None]
Expand Down

0 comments on commit f5314c1

Please sign in to comment.