Commit 5b05d9d4 authored by Pietro Albini's avatar Pietro Albini

Fix exception when no merge requests are present

parent e447a532
......@@ -75,7 +75,7 @@ class TestsManager:
# Load also new branches from merge requests
new = self.gitlab.merge_requests()
if not new:
if new is None:
raise RuntimeError("Can't get merge requests from GitLab!")
for request in new:
# Skip already loaded requests
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment