##// END OF EJS Templates
warn on glob with no matches
MinRK -
Show More
@@ -234,6 +234,8 b' class NbConvertApp(BaseIPythonApplication):'
234 # notebooks without having to type the extension.
234 # notebooks without having to type the extension.
235 globbed_files = glob.glob(pattern)
235 globbed_files = glob.glob(pattern)
236 globbed_files.extend(glob.glob(pattern + '.ipynb'))
236 globbed_files.extend(glob.glob(pattern + '.ipynb'))
237 if not globbed_files:
238 self.log.warn("pattern %r matched no files", pattern)
237
239
238 for filename in globbed_files:
240 for filename in globbed_files:
239 if not filename in filenames:
241 if not filename in filenames:
General Comments 0
You need to be logged in to leave comments. Login now