diff options
Diffstat (limited to 'buildstream/exceptions.py')
-rw-r--r-- | buildstream/exceptions.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/buildstream/exceptions.py b/buildstream/exceptions.py index 7e334a369..5a9cd455d 100644 --- a/buildstream/exceptions.py +++ b/buildstream/exceptions.py @@ -30,7 +30,11 @@ _last_exception = None def _get_last_exception(): - return _last_exception + global _last_exception + + le = _last_exception + _last_exception = None + return le # BstError is an internal base exception class for BuildSream |