From e1df09f7a6cd950fa324695260524180720941a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BE=BD?= Date: Wed, 15 Aug 2018 02:14:24 -0500 Subject: [PATCH] Fix a bug cause gistfile.content None. (#486) Fixes #485 See issue: https://github.com/PyGithub/PyGithub/issues/485 --- github/Gist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/Gist.py b/github/Gist.py index 08819fd1..553752f8 100644 --- a/github/Gist.py +++ b/github/Gist.py @@ -94,7 +94,7 @@ class Gist(github.GithubObject.CompletableGithubObject): """ :type: dict of string to :class:`github.GistFile.GistFile` """ - self._completeIfNotSet(self._files) + self._completeIfNeeded() return self._files.value @property