mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-19 00:09:21 +11:00
Fixing TypeError when creating gist
This commit is contained in:
parent
8c7b752f7e
commit
f094e72788
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ def snippet_gist(request, snippet_id): # pragma: no cover
|
|||
try:
|
||||
payload = json.dumps(data)
|
||||
response = requests.post('https://api.github.com/gists', data=payload)
|
||||
response_dict = json.loads(response.content)
|
||||
response_dict = response.json()
|
||||
gist_url = response_dict.get('html_url')
|
||||
|
||||
# Github could be down, could return invalid JSON, it's rare
|
||||
|
|
Loading…
Reference in a new issue