Replaced old-style exception for Python 3 compatibility.
This commit is contained in:
parent
5ab6db2607
commit
e5e0b7674a
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue