Module: check_mk
Branch: master
Commit: a7407580652b18d3df8c338d759b0811fe8189f5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a7407580652b18…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Fri Jul 6 14:49:39 2018 +0200
Don't raise an 'Exception'. Be as specific as possible.
Change-Id: If05824b4f3054bb08b54c46e041cdd86e5a7ae9e
---
checks/multipath | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/checks/multipath b/checks/multipath
index 0f472c4..de0a34b 100644
--- a/checks/multipath
+++ b/checks/multipath
@@ -220,10 +220,9 @@ def parse_multipath(info):
dm_device = None
break
-
# No data row and no matching header row
if not matchobject:
- raise Exception("Invalid line in agent output: " + l)
+ raise ValueError("Invalid line in agent output: " + l)
# initialize information about next device
numpaths = 0