diff --git a/fibratus/filament.py b/fibratus/filament.py index 10cdbf659..0a9b9a56d 100644 --- a/fibratus/filament.py +++ b/fibratus/filament.py @@ -14,6 +14,7 @@ # under the License. import inspect +import traceback import os import sys from importlib.machinery import SourceFileLoader @@ -192,8 +193,7 @@ def title(text): def on_interval(): try: self._filament_module.on_interval() - except Exception as e: - import traceback + except Exception: self._logger.error('Unexpected error on interval elapsed %s' % traceback.format_exc()) self.scheduler.add_job(on_interval,