Skip to content

Commit

Permalink
Trying to fix corrupted note_cache file after sublime text update
Browse files Browse the repository at this point in the history
  • Loading branch information
scbtest committed Feb 27, 2015
1 parent 6e9f889 commit 163766c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quick_simplenote.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ def load_notes():
return notes

def save_notes(notes):
cache_file = open(path.join(package_path, 'note_cache'),'w+b')
pickle.dump(notes, cache_file)
with open(path.join(package_path, 'note_cache'),'w+b') as cache_file:
pickle.dump(notes, cache_file)

class OperationManager:
_instance = None
Expand Down

0 comments on commit 163766c

Please sign in to comment.