Skip to content

Handle errors fetching existing merge requests

Ahmon Dancy requested to merge wmf-76ea into wmf

Currently if someone sets up their token wrong, GitLab will respond with
a 4XX error and _get_open_merge_requests will fall into an infinite
loop until it triggers SSLError(OSError(24, 'Too many open files'))).

Handle the non-200 status code and print a helpful error message
instead.

Merge request reports