kete: while disconnected, print a message to that effect

$> ./tools/tuhi-kete.py
Tuhi shell control
WARNING: Tuhi daemon not running
tuhi> list
Not connected to the Tuhi daemon

Better than just a noop
pull/66/head
Peter Hutterer 2018-02-02 08:55:13 +10:00
parent 1f93db6ca0
commit 02e8cf53ce
1 changed files with 1 additions and 0 deletions

View File

@ -614,6 +614,7 @@ class TuhiKeteShell(cmd.Cmd):
# Restore the logger facility to something sane:
self._log_handler.set_normal_mode()
if self._manager is None and line not in ['EOF', 'exit']:
print('Not connected to the Tuhi daemon')
return ''
return line