1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-27 00:28:55 +02:00

python3 compatibility: except

changes 'except FooError, fe' to 'except FooError as fe'

available in python 2.6
This commit is contained in:
Michal Vyskocil
2013-04-09 11:27:02 +02:00
committed by Adrian Schröter
parent d3648be24b
commit 3a93ac6d10
16 changed files with 110 additions and 110 deletions

View File

@@ -114,7 +114,7 @@ if __name__ == '__main__':
import sys
try:
pkgq = PackageQuery.query(sys.argv[1])
except PackageError, e:
except PackageError as e:
print e.msg
sys.exit(2)
print pkgq.name()