Complain if we can't read the mirrormanager/mirroradmins list.

This commit is contained in:
Ralph Bean 2014-04-22 23:14:13 +00:00
parent 787621021c
commit e551044685

View file

@ -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')