Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit 51c36d1

Browse files
committed
Removes cache from memory when deleting cache file
1 parent 34a3a10 commit 51c36d1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎AngularJS-sublime-package.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,11 @@ class AngularjsDeleteCacheCommand(sublime_plugin.WindowCommand):
445445

446446
def run(self):
447447
ng.alert('Deleting Cache')
448-
os.remove(ng.index_cache_location)
448+
try:
449+
os.remove(ng.index_cache_location)
450+
except:
451+
ng.alert('Deleting Cache: No cache file found.')
452+
ng.projects_index_cache = {}
449453

450454
class AngularjsFileIndexCommand(sublime_plugin.WindowCommand):
451455

0 commit comments

Comments
 (0)