Martin Sivák has posted comments on this change. Change subject: print more user friendly error when VM is powered down while running collectors ......................................................................
Patch Set 1: Code-Review-1 (1 comment) http://gerrit.ovirt.org/#/c/35883/1/mom/HypervisorInterfaces/vdsmInterface.py File mom/HypervisorInterfaces/vdsmInterface.py: Line 223: def __init__(self, response, logger): Line 224: self.msg = response Line 225: try: Line 226: self.msg = response['status'].get('message', response) Line 227: except: Catch AttributeError and KeyError: please. I would also probably move the fallback assignment to the except block. Line 228: pass Line 229: self.logger = logger Line 230: Line 231: def handle_exception(self): -- To view, visit http://gerrit.ovirt.org/35883 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I027b090a785883f79c7a678e8505c7e1d18bf2a8 Gerrit-PatchSet: 1 Gerrit-Project: mom Gerrit-Branch: master Gerrit-Owner: Jiří Moskovčák <jmosk...@redhat.com> Gerrit-Reviewer: Adam Litke <ali...@redhat.com> Gerrit-Reviewer: Martin Sivák <msi...@redhat.com> Gerrit-Reviewer: Roy Golan <rgo...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches