diff --git a/systeminfo/proc/base.py b/systeminfo/proc/base.py index ecbab67..50c6484 100644 --- a/systeminfo/proc/base.py +++ b/systeminfo/proc/base.py @@ -193,7 +193,7 @@ def createCache(self): """ cache_file = self.cacheDir + self.__class__.__name__.lower() + '.cache' - cache_file_obj = open(cache_file, 'w') + cache_file_obj = open(cache_file, 'w+') # pickling asset data pickle.dump(self.asset_info, cache_file_obj)