]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - tools/patman/patman.py
tools, scripts: refactor error-out statements of Python scripts
[karo-tx-uboot.git] / tools / patman / patman.py
index c60aa5a1c4560e78fbaed1fc1535f83a7b3e89c3..ba5dc91315bf09fa482a8951c39ebeef265f85a9 100755 (executable)
@@ -122,8 +122,7 @@ else:
     col = terminal.Color()
     if not options.count:
         str = 'No commits found to process - please use -c flag'
-        print col.Color(col.RED, str)
-        sys.exit(1)
+        sys.exit(col.Color(col.RED, str))
 
     # Read the metadata from the commits
     if options.count: