mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-25 19:52:12 +01:00
Remove superfluous try-except block in the archquery module
ArchQuery.query never raises an ArchError exception.
This commit is contained in:
parent
2074a1c01d
commit
f63a0957af
@ -209,11 +209,7 @@ class ArchQuery(packagequery.PackageQuery, packagequery.PackageQueryResult):
|
||||
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
try:
|
||||
archq = ArchQuery.query(sys.argv[1])
|
||||
except ArchError as e:
|
||||
print(e.msg)
|
||||
sys.exit(2)
|
||||
print(archq.name(), archq.version(), archq.release(), archq.arch())
|
||||
try:
|
||||
print(archq.canonname())
|
||||
|
Loading…
x
Reference in New Issue
Block a user