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
1 changed files with 5 additions and 1 deletions

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'