Styling (really gotta get a commit hook working for this)
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
eeaa1805bf
commit
ea84012059
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue