Styling (really gotta get a commit hook working for this)
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Jordi Loyzaga 2024-09-18 20:16:01 -06:00
parent eeaa1805bf
commit ea84012059
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ def validate_paths(media_path):
Raises: Raises:
e: Any exception that might happen (Permission Denied, Path does not exist, etc.) e: Any exception that might happen (Permission Denied, Path does not exist, etc.)
""" """
try: try:
Path(media_path).mkdir(exist_ok=True) Path(media_path).mkdir(exist_ok=True)
except Exception as e: except Exception as e:

View File

@ -244,7 +244,7 @@ class File(LockboxBase):
self.max_size_chunk_bytes = get_max_size_chunk_bytes() self.max_size_chunk_bytes = get_max_size_chunk_bytes()
if self.expected_size > get_config("MAX_FILE_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) return super().save(*args, **kwargs)
def delete(self, *args, **kwargs): def delete(self, *args, **kwargs):