forked from goodboy/tractor
Ignore `greenback` import error if not installed
parent
9da3b63644
commit
2f0bed3018
|
@ -836,6 +836,7 @@ async def pause(
|
|||
# runtime aware version which takes care of all .
|
||||
def pause_from_sync() -> None:
|
||||
print("ENTER SYNC PAUSE")
|
||||
try:
|
||||
import greenback
|
||||
__tracebackhide__ = True
|
||||
|
||||
|
@ -852,6 +853,8 @@ def pause_from_sync() -> None:
|
|||
# release_lock_signal=task_can_release_tty_lock,
|
||||
))
|
||||
)
|
||||
except ModuleNotFoundError:
|
||||
log.warning('NO GREENBACK FOUND')
|
||||
|
||||
db, undo_sigint = mk_mpdb()
|
||||
Lock.local_task_in_debug = 'sync'
|
||||
|
|
Loading…
Reference in New Issue