Skip to content

Commit

Permalink
string formatting
Browse files Browse the repository at this point in the history
Co-authored-by: Madicken Munk <madicken.munk@gmail.com>
  • Loading branch information
neutrinoceros and munkm committed Jun 29, 2020
1 parent abb6e0a commit 3934476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt/data_objects/time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_filenames_from_glob_pattern(pattern):
# we try to match the pattern from the test data dir
file_list = glob.glob(epattern) or glob.glob(os.path.join(data_dir, pattern))
if not file_list:
raise FileNotFoundError("No file matched this pattern '%s'" % pattern)
raise FileNotFoundError("No file matched this pattern or pattern(s) {}".format(pattern))
return sorted(file_list)

attrs = ("refine_by", "dimensionality", "current_time",
Expand Down

0 comments on commit 3934476

Please sign in to comment.