| |
@@ -98,12 +98,10 @@
|
| |
password = getpass.getpass('FAS Password: ')
|
| |
try:
|
| |
fas = AccountSystem('https://admin.fedoraproject.org/accounts/', username=username, password=password)
|
| |
- except AuthError:
|
| |
- raise fedora_cert_error("Invalid username/password.")
|
| |
-
|
| |
- try:
|
| |
cert = fas.user_gencert()
|
| |
fas.logout()
|
| |
+ except AuthError:
|
| |
+ raise fedora_cert_error("Invalid username/password.")
|
| |
except CLAError:
|
| |
fas.logout()
|
| |
raise fedora_cert_error("""You must sign the CLA before you can generate your certificate.\n
|
| |
This fixes https://bugzilla.redhat.com/show_bug.cgi?id=1126918