pgAdmin4 python3 some issues

From: Seçkin Alan <seckinalan(at)gmail(dot)com>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: pgAdmin4 python3 some issues
Date: 2016-04-14 14:10:47
Message-ID: CAJZJJmpoROJTKTMMwnHuk1E730ODhPCWjZ3dW_62kgmB_j=rmw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi,
In Python 2.7
>>>NameError('seckin').message
'seckin'

In Python3
>>> NameError('seckin').message
Traceback (most recent call last):
File "<input>", line 1, in <module>
AttributeError: 'NameError' object has no attribute 'message'

So
In python3 some exceptions doesnt showing

For example:
pgadmin4/web/pgadmin/browser/server_groups/servers/__init__.py
523: errormsg=e.message

If we use __str__() method, not problem in both versions

what measures can be taken?

--
Seçkin ALAN
http://sckn.org

Browse pgadmin-hackers by date

  From Date Subject
Next Message Sanket Mehta 2016-04-14 14:41:09 PATCH: FTS Dictionary
Previous Message Dave Page 2016-04-14 14:10:17 Re: [pgAdmin4] [Patch] Implementation of the Data Grid and Query Tool