Merge pull request #3828 from mikejcorey/except_syntax

Replaced old-style exception for Python 3 compatibility.
This commit is contained in:
Artem Pavlenko 2018-01-11 09:53:57 +00:00 committed by GitHub
commit ab4e1b77d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@ if env['RUNTIME_LINK'] == 'static':
cmd = 'pkg-config libpq --libs --static'
try:
program_env.ParseConfig(cmd)
except OSError, e:
except OSError as e:
program_env.Append(LIBS='pq')
else:
program_env.Append(LIBS='pq')