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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user