From d57714cf9bcd54b8bcfefd9bceb25644bea0d398 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Tue, 9 Jul 2024 16:33:59 +0300 Subject: [PATCH] Add missing `exc` exception variable for qa/bin/functional File "./exabgp/./qa/bin/functional", line 155, in collect self.message = str(exc) UnboundLocalError: local variable 'exc' referenced before assignment Signed-off-by: Donatas Abraitis --- qa/bin/functional | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/bin/functional b/qa/bin/functional index 58c6d0e1c..059dfdf5d 100755 --- a/qa/bin/functional +++ b/qa/bin/functional @@ -151,7 +151,7 @@ class Exec(object): except ValueError as exc: # I/O operation on closed file self.message = str(exc) pass - except Alarm: + except Alarm as exc: self.message = str(exc) pass