dvarrazzo/psycopg — comment on commit d2b67364fd2b0b192342281d24a7e3d0a4909980
File: lib/__init__.py line 145
By dvarrazzo:

The libpq detects the error and a clear exception is raised by _connect::

OperationalError: invalid port number: "-1"