Changeset 2033
- Timestamp:
- 01/19/05 09:56:30 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/pgstorage.py
r2031 r2033 22 22 # 23 23 # $Log$ 24 # Revision 1.39 2005/01/19 08:56:30 jalet 25 # Convert PygreSQL's new exception into a string before re-raising it 26 # 24 27 # Revision 1.38 2005/01/19 08:48:17 jalet 25 28 # Fix exception's name wrt newer versions of PygreSQL … … 181 184 self.database = pg.connect(host=host, port=port, dbname=dbname, user=user, passwd=passwd) 182 185 except PGError, msg : 183 raise PyKotaStorageError, msg186 raise PyKotaStorageError, str(msg) 184 187 else : 185 188 self.closed = 0 … … 217 220 result = self.database.query(query) 218 221 except PGError, msg : 219 raise PyKotaStorageError, msg222 raise PyKotaStorageError, str(msg) 220 223 else : 221 224 return result … … 236 239 result = self.database.query(query) 237 240 except PGError, msg : 238 raise PyKotaStorageError, msg241 raise PyKotaStorageError, str(msg) 239 242 else : 240 243 return result