improve error handling when ipc is unavailable

This commit is contained in:
Chris Jones 2011-09-28 12:50:19 +01:00
parent 7bc5c9ccee
commit fdff4fa1eb

View File

@ -21,8 +21,12 @@
import os
import sys
from terminatorlib import ipc
from terminatorlib.util import dbg, err
try:
from terminatorlib import ipc
except ImportErrror:
err('Unable to initialise Terminator remote library. This probably means dbus is not available')
sys.exit(1)
APP_NAME='remotinator'
APP_VERSION='1.0'