Replaced old-style exception for Python 3 compatibility.

This commit is contained in:
Michael Corey 2018-01-10 21:50:49 -08:00
parent 5ab6db2607
commit e5e0b7674a

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')