Skip to content

Commit

Permalink
fix cache not saved when gh's api limit exceeded
Browse files Browse the repository at this point in the history
  • Loading branch information
marchtea committed May 21, 2014
1 parent b59a542 commit ee1729b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mdtogh/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ def transform(paths = None, cache_path = None, system_css = False, css = False,
except requests.RequestException as e:
print "\nError occur when request for github: ", e
exception_occur = True
except RuntimeError as e:
print "\nRunTime Error:", e
exception_occur = True

#save renderer data
__save_content_toc(contents, tocs, offline)
Expand Down

0 comments on commit ee1729b

Please sign in to comment.