--- buildtools/wafadmin/Options.py.orig 2014-10-01 18:12:21.000000000 +1000 +++ buildtools/wafadmin/Options.py 2021-12-29 15:42:23.467189000 +1000 @@ -205,7 +205,7 @@ bidx = args.index('build') if bidx > idx: raise ValueError('build before check') - except ValueError, e: + except ValueError as e: args.insert(idx, 'build') if args[0] != 'init':