From ad4eeb2d419a29aa7f1ba46c1cb675ea415fa40d 2013-07-25 23:53:36 From: David Wolever Date: 2013-07-25 23:53:36 Subject: [PATCH] Exit with status 1, not -1 --- diff --git a/IPython/nbconvert/nbconvertapp.py b/IPython/nbconvert/nbconvertapp.py index a00d80e..b905e60 100755 --- a/IPython/nbconvert/nbconvertapp.py +++ b/IPython/nbconvert/nbconvertapp.py @@ -210,11 +210,11 @@ class NbConvertApp(BaseIPythonApplication): print("Known exporters are:", "\n\t" + "\n\t".join(get_export_names()), file=sys.stderr) - self.exit(-1) + self.exit(1) except ConversionException as e: print("Error while converting '%s': %s" %(notebook_filename, e), file=sys.stderr) - self.exit(-1) + self.exit(1) # except Exception as e: # print("Error: could not export '%s'" % notebook_filename, file=sys.stderr) # print(e, file=sys.stderr)