Unverified Commit 5d6f1724 authored by Jean Sorgemoel's avatar Jean Sorgemoel Committed by AleaJactaEst

Fix issue #1338 - debops-defaults failed if external command 'view' doesn't exist

parent dab8c67d
......@@ -65,7 +65,10 @@ def error_msg(message, severity="Error"):
"""
Display error message and exit
"""
old = sys.stdout
sys.stdout = sys.__stdout__
print(SCRIPT_NAME+':', severity+':', message)
sys.stdout = old
if severity == "Error":
raise SystemExit(1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment