From ea840120596aa7757e93183ecf09524ceca12294 Mon Sep 17 00:00:00 2001 From: Jordi Loyzaga Date: Wed, 18 Sep 2024 20:16:01 -0600 Subject: [PATCH] Styling (really gotta get a commit hook working for this) --- lockbox/lockbox/setup.py | 2 +- lockbox/storage/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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):