Merge pull request #3828 from mikejcorey/except_syntax
Replaced old-style exception for Python 3 compatibility.
This commit is contained in:
commit
ab4e1b77d0
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