Fix ImportError
This commit is contained in:
parent
ce191f6eeb
commit
c8b0e203ef
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue