From befd01cb034ecf4b842f9ccee310c6db715c6776 Mon Sep 17 00:00:00 2001 From: jpic Date: Sun, 31 May 2020 02:44:13 +0200 Subject: [PATCH] Proper traceback prints --- shlax/targets/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shlax/targets/base.py b/shlax/targets/base.py index 7f6e30e..ac4d938 100644 --- a/shlax/targets/base.py +++ b/shlax/targets/base.py @@ -2,6 +2,7 @@ import copy from pathlib import Path import os import re +import sys from ..output import Output from ..proc import Proc @@ -58,7 +59,7 @@ class Target: raise else: import traceback - traceback.print_exception(type(e), e, None) + traceback.print_exception(type(e), e, sys.exc_info()[2]) return True else: self.output.success(action)