Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7070c52

Browse files
seveassigmavirus24
authored andcommitted
Return the empty string for empty gitignore templates
Let's not crash trying to interpret None as json, but return an emptystring instead.
1 parent1a24e7e commit7070c52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎github3/github.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ def gitignore_template(self, language):
316316
"""
317317
url=self._build_url('gitignore','templates',language)
318318
json=self._json(self._get(url),200)
319+
ifnotjson:
320+
return''
319321
returnjson.get('source','')
320322

321323
defgitignore_templates(self):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp