From e2ea6b2a8a29503a9c954bcfc433379030e0f097 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Wed, 12 Oct 2022 06:39:36 +0800 Subject: [PATCH] MDL-75959 customfield: Correct inappropriate class import I suspect this was an incorrect tab completion import by an IDE which was missed. --- customfield/classes/privacy/provider.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/customfield/classes/privacy/provider.php b/customfield/classes/privacy/provider.php index cf7d2fe839f..fa85fdc4924 100644 --- a/customfield/classes/privacy/provider.php +++ b/customfield/classes/privacy/provider.php @@ -33,7 +33,6 @@ use core_privacy\local\request\approved_contextlist; use core_privacy\local\request\contextlist; use core_privacy\local\request\writer; use core_privacy\manager; -use Horde\Socket\Client\Exception; /** * Class provider @@ -196,7 +195,7 @@ class provider implements $field = array_key_exists($record->fieldid, $fields) ? $fields[$record->fieldid] : null; $data = data_controller::create(0, $record, $field); self::export_customfield_data($data, array_merge($subcontext, [$record->id])); - } catch (Exception $e) { + } catch (\Exception $e) { // We store some data that we can not initialise controller for. We still need to export it. self::export_customfield_data_unknown($record, $field, array_merge($subcontext, [$record->id])); }