simplify error processing
This commit is contained in:
parent
eb88c7d9a6
commit
25ef943ec8
1 changed files with 1 additions and 1 deletions
2
cli/koji
2
cli/koji
|
|
@ -3535,7 +3535,7 @@ if __name__ == "__main__":
|
|||
else:
|
||||
exctype, value = sys.exc_info()[:2]
|
||||
rv = 1
|
||||
print "%s: %s" % (getattr(exctype, '__name__', None) or exctype, value)
|
||||
print "%s: %s" % (exctype.__name__, value)
|
||||
try:
|
||||
session.logout()
|
||||
except:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue