Permalink
Browse files

we should write to cache file when there is no cache file avaliable

  • Loading branch information...
1 parent a09d174 commit fd7f9ee532d9613c32fc1ed8682b1cb42fd59298 @garbas committed Jul 3, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 githubcollective/__init__.py
View
3 githubcollective/__init__.py
@@ -79,7 +79,8 @@ def run():
sync_ok = sync.run(new, old)
if sync_ok:
- if args.cache and not args.pretend:
+ if args.cache and \
+ (not args.pretend or not os.path.exists(args.cache)):
cache = open(args.cache, 'w+')
old.dumps(cache)
cache.close()

0 comments on commit fd7f9ee

Please sign in to comment.