From 832050f5b32c6fe930e723c40613d2035539a7f0 Mon Sep 17 00:00:00 2001 From: Bryann Valderrama Date: Mon, 9 Dec 2024 13:14:24 -0500 Subject: [PATCH] fix: solve pylint errors --- nau_openedx_extensions/filters/pipeline.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nau_openedx_extensions/filters/pipeline.py b/nau_openedx_extensions/filters/pipeline.py index d4b584e..9bdbcac 100644 --- a/nau_openedx_extensions/filters/pipeline.py +++ b/nau_openedx_extensions/filters/pipeline.py @@ -102,7 +102,7 @@ class FilterUsersWithAllowedNewsletter(PipelineStep): ``` """ - def run_filter(self, schedules: QuerySet) -> dict: + def run_filter(self, schedules: QuerySet) -> dict: # pylint: disable=arguments-differ """ Execute filter that filters users with allowed newsletter. @@ -122,9 +122,9 @@ def run_filter(self, schedules: QuerySet) -> dict: return { "schedules": filtered_schedules, } - except FieldError: - raise ScheduleQuerySetRequested.PreventScheduleQuerysetRequest( + except FieldError as exec: + raise ScheduleQuerySetRequested.PreventScheduleQuerySetRequest( "The filter can't be applied because the user model " "doesn't have the attribute 'nauuserextendedmodel'.", schedules, - ) + ) from exec