Fix local StorageHelper.delete() raising exception on non existing file instead of returning false

This commit is contained in:
allegroai 2021-12-22 13:08:32 +02:00
parent 69846d200a
commit 1a0a7b6738

View File

@ -2201,6 +2201,8 @@ class _FileStorageDriver(_Driver):
:return: True on success.
"""
if not obj:
return False
path = self.get_object_cdn_url(obj)