mirror of https://git.sr.ht/~sircmpwn/hub.sr.ht
Raise exception on unexpected git.sr.ht response
This commit is contained in:
parent
f91f8055fa
commit
84e0598f4d
|
@ -204,6 +204,8 @@ class GitService(SrhtService):
|
|||
"description": description,
|
||||
}
|
||||
})
|
||||
if not r["data"]:
|
||||
raise Exception(f"Invalid response from git.sr.ht: {r}")
|
||||
repo = r["data"]["createRepository"]
|
||||
repo["visibility"] = repo["visibility"].lower()
|
||||
return r["data"]["createRepository"]
|
||||
|
|
Loading…
Reference in New Issue