Commit 85a1496c authored by Ben Boeckel's avatar Ben Boeckel

gitlab: message when posting fails

parent 9d44f0d7
...@@ -120,6 +120,7 @@ class Gitlab(object): ...@@ -120,6 +120,7 @@ class Gitlab(object):
response =, headers=self.headers, data=kwargs) response =, headers=self.headers, data=kwargs)
if response.status_code != 201: if response.status_code != 201:
print 'post failed:', response.json()
return False return False
if callable(response.json): if callable(response.json):
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