Re: [Orbit-python-list] Exceptions
Status: Inactive
Brought to you by:
tack
From: James T. <ja...@ko...> - 2000-09-26 02:40:48
|
I apologize. I cut and paste from two different attempts. The section try: self.database = self.factory.newDatabase( self.databaseName ); except UnknownDatabase,ex: print "Failed to connect to database. Exiting." print ex.detail sys.exit(0) should read try: self.database = self.factory.newDatabase( self.databaseName ); except GEDI.UnknownDatabase,ex: print "Failed to connect to database. Exiting." print ex.detail sys.exit(0) When _this_ code runs I get File "./DSgedi.py", line 38, in connect except GEDI.UnknownDatabase,ex: NameError: GEDI Sorry for the mix up, James |