diff --git a/lockbox/lockbox/setup.py b/lockbox/lockbox/setup.py index 51120ae..06f5f0d 100644 --- a/lockbox/lockbox/setup.py +++ b/lockbox/lockbox/setup.py @@ -9,7 +9,7 @@ def validate_paths(media_path): Raises: e: Any exception that might happen (Permission Denied, Path does not exist, etc.) - """ + """ try: Path(media_path).mkdir(exist_ok=True) except Exception as e: diff --git a/lockbox/storage/models.py b/lockbox/storage/models.py index 0c21504..9f94a41 100644 --- a/lockbox/storage/models.py +++ b/lockbox/storage/models.py @@ -244,7 +244,7 @@ class File(LockboxBase): self.max_size_chunk_bytes = get_max_size_chunk_bytes() if self.expected_size > get_config("MAX_FILE_BYTES"): - raise ValidationError(f"Expected size: {self.expected_size} > than config MAX_SIZE_BYTES") + raise ValidationError(f"Expected size: {self.expected_size} > than config MAX_SIZE_BYTES") return super().save(*args, **kwargs) def delete(self, *args, **kwargs):