Re: [pgAdmin4][Patch]: Error while expanding server group node. - Mailing list pgadmin-hackers

From Ashesh Vashi
Subject Re: [pgAdmin4][Patch]: Error while expanding server group node.
Date
Msg-id CAG7mmozO6VZe8Xi2P=LcC8M6_7p9jw2Sxfph8KVh5uX5vw__Mg@mail.gmail.com
Whole thread Raw
In response to [pgAdmin4][Patch]: Error while expanding server group node.  (Surinder Kumar <surinder.kumar@enterprisedb.com>)
List pgadmin-hackers
On Mon, Sep 26, 2016 at 6:54 PM, Surinder Kumar <surinder.kumar@enterprisedb.com> wrote:
Hi

Issue:
Getting following error while expanding server group node.  
File "/Users/surinder/Documents/Projects/pgadmin4/web/pgadmin/browser/server_groups/servers/__init__.py", line 86, in get_nodes
    in_recovery = result['rows'][0]['inrecovery'];
TypeError: string indices must be integers

Not a proper scenario to reproduce it.

Solution:
Add proper check to fix it.

Thanks - committed!

--

Thanks & Regards,

Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company


http://www.linkedin.com/in/asheshvashi

 




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


pgadmin-hackers by date:

Previous
From: Ashesh Vashi
Date:
Subject: pgAdmin 4 commit: Do not try to set in_recovery, is_replay_paused prope
Next
From: Dave Page
Date:
Subject: pgAdmin 4 commit: Fix label cpaitalisation