Thread: [pgAdmin4][Patch]: Error while expanding server group node.

[pgAdmin4][Patch]: Error while expanding server group node.

From
Surinder Kumar
Date:
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.


Attachment

Re: [pgAdmin4][Patch]: Error while expanding server group node.

From
Ashesh Vashi
Date:
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