From 194797f558b176960aec846dff39c990ea7b46b4 Mon Sep 17 00:00:00 2001 From: Alban Diquet Date: Sat, 13 Nov 2021 22:29:58 +0000 Subject: [PATCH] Restire existing behavior --- securedrop/journalist_app/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/securedrop/journalist_app/utils.py b/securedrop/journalist_app/utils.py index 94fdf85be82..438ab74aca9 100644 --- a/securedrop/journalist_app/utils.py +++ b/securedrop/journalist_app/utils.py @@ -404,7 +404,7 @@ def purge_deleted_sources() -> None: for source in sources: try: delete_collection(source.filesystem_id) - except GpgKeyNotFoundError as e: + except Exception as e: current_app.logger.error("Error deleting source %s: %s", source.uuid, e)