fixed update code

This commit is contained in:
langolierz
2019-12-11 19:10:19 +00:00
parent da30da9176
commit 641ef046d0

View File

@@ -830,8 +830,9 @@ class Actions(object):
current_recur_hash = recur_repo.head.object.hexsha
current_conjur_hash = conjur_repo.head.object.hexsha
current_ofxVideoArtTools_hash = ofxVideoArtTools_repo.head.object.hexsha
os.remove('/home/pi/r_e_c_u_r/json_objects/settings.json')
os.remove(self.data.PATH_TO_DATA_OBJECTS + self.data.SETTINGS_JSON )
try_remove_file(self.data.PATH_TO_DATA_OBJECTS + self.data.SETTINGS_JSON )
try_remove_file(PATH_TO_DEFAULT_CONJUR_DATA)
try:
recur_repo.remotes.origin.pull()
conjur_repo.remotes.origin.pull()
@@ -868,5 +869,7 @@ class Actions(object):
self.message_handler.clear_all_messages()
@staticmethod
def try_remove_file(path):
os.path.exists(path):
os.remove(filePath)