Skip to content

Commit

Permalink
Merge pull request #4318 from blankenberg/tool-data-table-broken-symlink
Browse files Browse the repository at this point in the history
Fix for the caching of location filenames when they are broken symlinks.
  • Loading branch information
mvdbeek committed Jul 17, 2017
2 parents 0f2fe60 + cacce9f commit bded791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tools/data/__init__.py
Expand Up @@ -42,7 +42,7 @@ def tool_data_path_files(self):
def update_files(self):
try:
content = os.walk(self.tool_data_path)
self._tool_data_path_files = set(os.path.join(dirpath, fn) for dirpath, _, fn_list in content for fn in fn_list if fn and fn.endswith('.loc') or fn.endswith('.loc.sample'))
self._tool_data_path_files = set(filter(os.path.exists, [os.path.join(dirpath, fn) for dirpath, _, fn_list in content for fn in fn_list if fn and fn.endswith('.loc') or fn.endswith('.loc.sample')]))
self.update_time = time.time()
except Exception:
log.exception()
Expand Down

0 comments on commit bded791

Please sign in to comment.