Archived
1
0

Output exception message on problems.

This commit is contained in:
Markus Birth 2016-12-13 18:19:50 +01:00
parent c8e06ba697
commit 13181f04e7

View File

@ -471,8 +471,8 @@ if __name__ == "__main__":
end(CRITICAL, "Caught Control-C...")
except SystemExit:
raise
except:
end(UNKNOWN, "check_yum failed for unknown reasons.")
except Exception as ex:
end(UNKNOWN, "check_yum failed: {}".format(str(ex)))