public inbox for [email protected]  
help / color / mirror / Atom feed
From: Seçkin Alan <[email protected]>
To: [email protected]
Subject: pgAdmin4 python3 some issues
Date: Thu, 14 Apr 2016 17:10:47 +0300
Message-ID: <CAJZJJmpoROJTKTMMwnHuk1E730ODhPCWjZ3dW_62kgmB_j=rmw@mail.gmail.com> (raw)
List-Unsubscribe:  <mailto:[email protected]?body=unsub%20pgadmin-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


-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers




reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: pgAdmin4 python3 some issues
  In-Reply-To: <CAJZJJmpoROJTKTMMwnHuk1E730ODhPCWjZ3dW_62kgmB_j=rmw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox