Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix exception when gist language is none #41

Merged
merged 1 commit into from

2 participants

@freewizard

No description provided.

@condemil condemil merged commit cc39105 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 8, 2012
  1. @freewizard
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  gist.py
View
2  gist.py
@@ -217,10 +217,10 @@ def open_gist(gist_url):
edit = view.begin_edit()
view.insert(edit, 0, gist['files'][gist_filename]['content'])
view.end_edit(edit)
+ if not language: continue
language = gist['files'][gist_filename]['language']
new_syntax = os.path.join(language,"{0}.tmLanguage".format(language))
new_syntax_path = os.path.join(sublime.packages_path(), new_syntax)
- print new_syntax_path
if os.path.exists(new_syntax_path):
view.set_syntax_file( new_syntax_path )
Something went wrong with that request. Please try again.