From b7292658556823ebe94cf01df392b1318e762a4a Mon Sep 17 00:00:00 2001 From: Tim Savannah Date: Sat, 20 May 2017 17:04:22 -0400 Subject: [PATCH] Add msg property to FunctionTimedOut exception (also can get by str( exception ) --- func_timeout/exceptions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/func_timeout/exceptions.py b/func_timeout/exceptions.py index 613bbec..62c55ab 100644 --- a/func_timeout/exceptions.py +++ b/func_timeout/exceptions.py @@ -36,6 +36,8 @@ class FunctionTimedOut(BaseException): BaseException.__init__(self, msg) + self.msg = msg + def getMsg(self): '''