From b7a789b71b9b2f67899bd11a40944231132432c1 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 25 May 2016 16:49:07 -0400 Subject: [PATCH] Raise incurred exception if appropriate While fetching eventlog, if a communication problem occurs, the exception was ignored and code fell through to unitialized variable. Fix this by raising if not the value known to be ignored. Change-Id: I7785d0b3695abd84a8cac23059c031956877db58 --- pyghmi/ipmi/events.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyghmi/ipmi/events.py b/pyghmi/ipmi/events.py index 1bf7e793..d8cfb9d7 100644 --- a/pyghmi/ipmi/events.py +++ b/pyghmi/ipmi/events.py @@ -515,6 +515,8 @@ class EventHandler(object): except pygexc.IpmiException as pi: if pi.ipmicode == 203: break + else: + raise curr = struct.unpack_from('