Fix key error

From: Dave Cramer <davecramer(at)gmail(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Fix key error
Date: 2017-08-07 18:53:54
Message-ID: CADK3HHJm4vaxxu2rchxUvsTxZRU2QTouySU3h2zBZ3fu8fr1_Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
fixkeyerror.patch application/octet-stream 715 bytes

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Cramer 2017-08-07 22:50:27 Can someone tell me what this code does ?
Previous Message Dave Page 2017-08-07 15:36:23 Re: [pgAdmin4][Patch]: Allow user to cancel long running queries from dashboard