An early error halts the rest of the actions to be completed.
Several of the methods raise an error and then halts the script. This is an issue if I have forgotten to add all student id's to the list of repositories. Then the script will raise an error about that a student already has access to the repository and then stop the script. This means that the rest of the students would not be added to the repository.
Possible solutions: Avoid to raise exceptions when a query fails or catch the raised exception and make the script continue after displaying an error.
The problematic errors are like the one below
raise requests.HTTPError('%s for url: %s' % (resp.json()['message'], url))