From 127328cec9a7530da7fcbae0660b9b5c82e28e7d 2013-07-30 22:35:39 From: MinRK Date: 2013-07-30 22:35:39 Subject: [PATCH] warn on glob with no matches --- diff --git a/IPython/nbconvert/nbconvertapp.py b/IPython/nbconvert/nbconvertapp.py index 8f07505..ebb960f 100755 --- a/IPython/nbconvert/nbconvertapp.py +++ b/IPython/nbconvert/nbconvertapp.py @@ -234,6 +234,8 @@ class NbConvertApp(BaseIPythonApplication): # notebooks without having to type the extension. globbed_files = glob.glob(pattern) globbed_files.extend(glob.glob(pattern + '.ipynb')) + if not globbed_files: + self.log.warn("pattern %r matched no files", pattern) for filename in globbed_files: if not filename in filenames: