Fix key error - Mailing list pgadmin-hackers

From Dave Cramer
Subject Fix key error
Date
Msg-id CADK3HHJm4vaxxu2rchxUvsTxZRU2QTouySU3h2zBZ3fu8fr1_Q@mail.gmail.com
Whole thread Raw
Responses Re: Fix key error  (Surinder Kumar <surinder.kumar@enterprisedb.com>)
List pgadmin-hackers
I don't think this line in web/pgadmin/browser/server_groups/servers/types.py does what it should.

default_path = config.DEFAULT_BINARY_PATHS[st.stype] or ""

will ever succeed if the key does not exist

Attached patch should work.

Dave Cramer
Attachment

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: [pgAdmin4][Patch]: Allow user to cancel long running queries from dashboard
Next
From: Dave Cramer
Date:
Subject: Can someone tell me what this code does ?