andialbrecht / crunchyfrog

Head over to RunSQLRun, the successor of CrunchyFrog
http://runsqlrun.org
GNU General Public License v3.0
4 stars 2 forks source link

No message dialog on failed test connections #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Extract crunchyfrog-0.2.0-beta1
2. Run without install: ./crunchyfrog
3. Open «Datasource Manager»
4. Create a connection that you know that it will fail.
5. Click on «Test connection»

What is the expected output? What do you see instead?
An error dialog.

What version of the product are you using? On what operating system?
Crunchyfrog 0.2.0 beta1 on Debian Sid AMD64

Please provide any additional information below.
Traceback:

[...]/crunchyfrog-0.2.0-beta1$ ./crunchyfrog
WARNING environ 1205754688.375171   No es_ES translation found for domain kiwi
12:51:28 environ              No es_ES translation found for domain kiwi
[...]/crunchyfrog-0.2.0-beta1/cf/ui/pdock/__init__.py:151: DeprecationWarning: 
  self.set_homogeneous_tabs(False)
Traceback (most recent call last):
  File "[...]/crunchyfrog-0.2.0-beta1/cf/datasources.py", line 162, in
on_be_test_connection
    =======
  File "[...]/crunchyfrog-0.2.0-beta1/cf/backends/postgres.py", line 108,
in test_connection
  File "[...]/crunchyfrog-0.2.0-beta1/cf/backends/postgres.py", line 101,
in dbconnect
AttributeError: OperationalError instance has no attribute 'message'

Original issue reported on code.google.com by rodrigue...@gmail.com on 17 Mar 2008 at 11:49

GoogleCodeExporter commented 9 years ago
This issues only occurs in Python 2.4. `message` is a property introduced with 
the
new exception hierarchy in 2.5 (see: http://www.python.org/dev/peps/pep-0352/).

Affected backend:
 * PostgreSQL
 * MySQL
 * Oracle
 * SQLite

Original comment by albrecht.andi on 17 Mar 2008 at 2:24

GoogleCodeExporter commented 9 years ago

Original comment by albrecht.andi on 17 Mar 2008 at 2:24

GoogleCodeExporter commented 9 years ago
fixed in rev. 109

Original comment by albrecht.andi on 17 Mar 2008 at 7:30