diff --git a/press/press/doctype/remote_file/remote_file.py b/press/press/doctype/remote_file/remote_file.py index fd17d32b13..b00ce85730 100644 --- a/press/press/doctype/remote_file/remote_file.py +++ b/press/press/doctype/remote_file/remote_file.py @@ -231,7 +231,8 @@ def delete_remote_object(self): ) def on_trash(self): - self.delete_remote_object() + if self.status != "Unavailable": + self.delete_remote_object() @frappe.whitelist() def get_download_link(self):