We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5df16e3 commit 9634ba4Copy full SHA for 9634ba4
patch_ng.py
@@ -31,7 +31,7 @@
31
from __future__ import print_function
32
33
__author__ = "Conan.io <info@conan.io>"
34
-__version__ = "1.17.1"
+__version__ = "1.17.2"
35
__license__ = "MIT"
36
__url__ = "https://github.com/conan-io/python-patch"
37
@@ -1346,6 +1346,10 @@ def main():
1346
print(patch.diffstat())
1347
sys.exit(0)
1348
1349
+ if not patch:
1350
+ error("Could not parse patch")
1351
+ sys.exit(-1)
1352
+
1353
#pprint(patch)
1354
if options.revert:
1355
patch.revert(options.strip, root=options.directory) or sys.exit(-1)
0 commit comments