Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit fd7f9ee532d9613c32fc1ed8682b1cb42fd59298 1 parent a09d174
@garbas authored
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.
Something went wrong with that request. Please try again.