Skip to content

Commit

Permalink
place traceback import on the top of the module
Browse files Browse the repository at this point in the history
  • Loading branch information
bhnedo committed Mar 4, 2017
1 parent dc98011 commit acc83d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fibratus/filament.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# under the License.

import inspect
import traceback
import os
import sys
from importlib.machinery import SourceFileLoader
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit acc83d9

Please sign in to comment.