replaced ConnectionFailed with Exception in tools/euca-get-ajax-console

was not working for me with euca2tools 1.2 (version 2007-10-10, release 31337)
This commit is contained in:
Christian Berendt 2011-02-26 19:09:57 +01:00
parent f623b52a89
commit 4229990fa7

View File

@ -35,7 +35,7 @@ if os.path.exists(os.path.join(possible_topdir, 'nova', '__init__.py')):
import boto
import nova
from boto.ec2.connection import EC2Connection
from euca2ools import Euca2ool, InstanceValidationError, Util, ConnectionFailed
from euca2ools import Euca2ool, InstanceValidationError, Util
usage_string = """
Retrieves a url to an ajax console terminal
@ -147,7 +147,7 @@ def main():
try:
euca_conn = euca.make_connection()
except ConnectionFailed, e:
except Exception, e:
print e.message
sys.exit(1)
try: