Please find attached patch with following fix:
1) While running pgAdmin4 with latest git pull on Windows x64 environment, I got an exception on terminal console,
NameError
NameError: global name 'arch_keys' is not defined
Issue: arch_keys was defined inside the method add_server, but used outside the method.
I have handled this issue in attached patch.