Skip to content
Browse files

Added max_gists check with error message

  • Loading branch information...
1 parent 7256f4e commit b3bf295ef11ca4c234f14ddf318a4f856846db00 Stefan committed Aug 9, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 gist.py
View
5 gist.py
@@ -27,7 +27,10 @@
#Per page support (max 100)
if settings.get('max_gists'):
- GISTS_URL += '?per_page=%d' % settings.get('max_gists');
+ if settings.get('max_gists') <= 100
+ GISTS_URL += '?per_page=%d' % settings.get('max_gists');
+ else:
+ sublime.error_message("Gist: GitHub API does not support a value of higher than 100")
class MissingCredentialsException(Exception):
pass

0 comments on commit b3bf295

Please sign in to comment.
Something went wrong with that request. Please try again.