Fix ImportError

This commit is contained in:
croneter 2018-11-21 07:59:35 +01:00
parent ce191f6eeb
commit c8b0e203ef

View file

@ -233,7 +233,7 @@ def ERROR(txt='', hide_tb=False, notify=False, cancel_sync=False):
short = str(sys.exc_info()[1]) short = str(sys.exc_info()[1])
LOG.error('Error encountered: %s - %s', txt, short) LOG.error('Error encountered: %s - %s', txt, short)
if cancel_sync: if cancel_sync:
import app from . import app
app.SYNC.stop_sync = True app.SYNC.stop_sync = True
if hide_tb: if hide_tb:
return short return short