From b2d07d1c6edd1583a483e4c855a3e6aacbdc4710 Mon Sep 17 00:00:00 2001 From: Bram Date: Fri, 22 Jun 2018 05:56:27 +0200 Subject: [PATCH] [mod] simplify code "raise" alone will do exactly the same thing. --- src/yunohost/log.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/yunohost/log.py b/src/yunohost/log.py index b9d31538a..e9ce97bf8 100644 --- a/src/yunohost/log.py +++ b/src/yunohost/log.py @@ -252,8 +252,7 @@ def is_unit_operation(entities='app,domain,service,user', exclude='auth,password result = func(*args, **kwargs) except Exception as e: uo.error(e) - t, v, tb = exc_info() - raise t, v, tb + raise else: uo.success() return result