Skip to content

Commit fd7f9ee

Browse files
committed
we should write to cache file when there is no cache file avaliable
1 parent a09d174 commit fd7f9ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

githubcollective/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def run():
7979
sync_ok = sync.run(new, old)
8080

8181
if sync_ok:
82-
if args.cache and not args.pretend:
82+
if args.cache and \
83+
(not args.pretend or not os.path.exists(args.cache)):
8384
cache = open(args.cache, 'w+')
8485
old.dumps(cache)
8586
cache.close()

0 commit comments

Comments
 (0)