Complain if we can't read the mirrormanager/mirroradmins list.
This commit is contained in:
parent
787621021c
commit
e551044685
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,10 @@ import fedbadges.utils
|
|||
def main():
|
||||
url = 'https://admin.fedoraproject.org/mirrormanager/mirroradmins'
|
||||
response = requests.get(url)
|
||||
|
||||
if response.status_code != 200:
|
||||
raise IOError("Couldn't read the mirrormanager/mirroradmins list.")
|
||||
|
||||
usernames = response.text.split()
|
||||
|
||||
badge = tahrir.get_badge(badge_id='mirror,-mirror-on-the-wall')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue