Skip to content

Commit

Permalink
Update disk_objectstore/backup_utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastiaan Huber <[email protected]>
  • Loading branch information
eimrek and sphuber authored Jan 11, 2024
1 parent 37af8c0 commit d2b7f74
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions disk_objectstore/backup_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ def validate(self):
f"Input validation failed: {path} not accessible."
)

path_exists = self.check_path_exists(self.path)

if not path_exists:
if not self.check_path_exists(self.path):
success = self.run_cmd(["mkdir", str(self.path)])[0]
if not success:
raise BackupError(

Check warning on line 104 in disk_objectstore/backup_utils.py

View check run for this annotation

Codecov / codecov/patch

disk_objectstore/backup_utils.py#L101-L104

Added lines #L101 - L104 were not covered by tests
Expand Down

0 comments on commit d2b7f74

Please sign in to comment.