Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqhyu-0005rO-Q4 for pgadmin-hackers@arkaria.postgresql.org; Thu, 14 Apr 2016 14:10:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aqhyu-0000g0-D4 for pgadmin-hackers@arkaria.postgresql.org; Thu, 14 Apr 2016 14:10:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aqhyt-0000cF-6B for pgadmin-hackers@postgresql.org; Thu, 14 Apr 2016 14:10:51 +0000 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1aqhyq-0002lZ-IK for pgadmin-hackers@postgresql.org; Thu, 14 Apr 2016 14:10:50 +0000 Received: by mail-lf0-x231.google.com with SMTP id j11so110062259lfb.1 for ; Thu, 14 Apr 2016 07:10:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to :content-transfer-encoding; bh=vOd0xx5GDGrI4rBm7XsROC25ay2Ksr5E1D3nBdjzerI=; b=FAynyWR+TqteHaEnek6V0/RFvjfeGRgmGrOi4Fn/wlSS6Q5hP23DSjVViNI/PJe5zj qX0gC1w7xXpZBkEaW03Ws1UFAxzBYrDtA0RQzLYva9vBtLvwk0bmFMRPkdiMimKXK3p/ xK8Vry78XRgQB0RlBhZ816PGQzCmBV169uBwRreDlYU0LnbYbiZ9Fr7ppffMIVDM9oCo QI5vqgP+26BIg8MOL/FuDR7johxsmUBdEZTvXHlxqN8rF6oA4hGlFBNCPfvTcXEBzFxy 1CVRs3YrxnxOhKOKPxH0/PEhaFUtbcOK1fijEnIZCfETqhUE700fbM3SLzzt61HE0cIp Ly0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-transfer-encoding; bh=vOd0xx5GDGrI4rBm7XsROC25ay2Ksr5E1D3nBdjzerI=; b=XGlZRzTon1DHHz7lHsSazkm1DJn0U9S9D4HKIfkrYwq96Fh8eTE8KyCWpIHLboBLmE 0TFs6+CIL7SvVkR18x+yHJu5RApJvBvURyzT6/Sv9NZcoc5jIk2URNpwgMiaT1wMpOYg LEV9RqYOdxTlmr0G1sxRHAIjbtC02PQY/0Zvpd3N7ceVR5YyNN6fB/uXBEcyThJx+YrU cCy0KvAv7i3Nbx2aU8wFgZ155kTjF3by0rstJMH8vE5EAnqfltkqgzxxYR7EbejA10C2 svu5eEYeGiNSSujVNKCswZf2aSI0NRqyEyxLvFvnQ8TiiVu+TUCLGirhJ/U/H6uLK5Ah /j9Q== X-Gm-Message-State: AOPr4FWLzu41MdgY+WndMKird1lxTIhQAFU+42bNTKbd8jDcP3rcxHhTI03Oc118aIZ8ZyLPDTZNX7+UM+K6zg== MIME-Version: 1.0 X-Received: by 10.112.210.200 with SMTP id mw8mr6391404lbc.16.1460643047761; Thu, 14 Apr 2016 07:10:47 -0700 (PDT) Received: by 10.112.73.69 with HTTP; Thu, 14 Apr 2016 07:10:47 -0700 (PDT) Date: Thu, 14 Apr 2016 17:10:47 +0300 Message-ID: Subject: pgAdmin4 python3 some issues From: =?UTF-8?B?U2XDp2tpbiBBbGFu?= To: pgadmin-hackers@postgresql.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.8 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Hi, In Python 2.7 >>>NameError('seckin').message 'seckin' In Python3 >>> NameError('seckin').message Traceback (most recent call last): File "", line 1, in 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=3De.message If we use __str__() method, not problem in both versions what measures can be taken? --=20 Se=C3=A7kin ALAN http://sckn.org --=20 Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers