diff --git a/qt/aqt/mediasrv.py b/qt/aqt/mediasrv.py index 15d9a0fd12f..56c246942fe 100644 --- a/qt/aqt/mediasrv.py +++ b/qt/aqt/mediasrv.py @@ -685,11 +685,11 @@ def warn() -> None: aqt.mw.taskman.run_on_main(warn) abort(403) - if ( - context == PageContext.NON_LEGACY_PAGE - or context == PageContext.EDITOR - or context == PageContext.ADDON_PAGE - ): + if context in [ + PageContext.NON_LEGACY_PAGE, + PageContext.EDITOR, + PageContext.ADDON_PAGE, + ]: pass elif context == PageContext.REVIEWER and request.path in ( "/_anki/getSchedulingStatesWithContext",