mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-11 18:45:34 +00:00
Tidy up a few broken datastore paths
This commit is contained in:
@@ -20,7 +20,10 @@ class perform_site_check():
|
||||
return
|
||||
|
||||
def ensure_output_path(self):
|
||||
os.mkdir(self.output_path)
|
||||
try:
|
||||
os.mkdir(self.output_path)
|
||||
except FileExistsError:
|
||||
print (self.output_path, "already exists.")
|
||||
|
||||
|
||||
def save_response_stripped_output(self, output, fname):
|
||||
@@ -40,7 +43,7 @@ class perform_site_check():
|
||||
"last_checked": timestamp
|
||||
}
|
||||
|
||||
self.output_path = "/datastore/{}".format(uuid)
|
||||
self.output_path = "{}/{}".format(self.datastore.datastore_path,uuid)
|
||||
self.ensure_output_path()
|
||||
|
||||
extra_headers = self.datastore.get_val(uuid, 'headers')
|
||||
|
||||
Reference in New Issue
Block a user