logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: daad35aeb95d0367d1525c60213db1ee6cede6bc
parent 9ea55a38885c4c4142ca9a479ce0eb23886fbaa4
Author: Mark Felder <feld@feld.me>
Date:   Tue, 22 Jul 2025 11:49:56 -0700

Fix dialyzer error in scopes compiler: Add error handling for extract_all_scopes/0

Diffstat:

Mlib/pleroma/web/api_spec/scopes/compiler.ex6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/pleroma/web/api_spec/scopes/compiler.ex b/lib/pleroma/web/api_spec/scopes/compiler.ex @@ -26,7 +26,11 @@ defmodule Pleroma.Web.ApiSpec.Scopes.Compiler do end def extract_all_scopes do - extract_all_scopes_from(Pleroma.Web.ApiSpec.spec()) + try do + extract_all_scopes_from(Pleroma.Web.ApiSpec.spec()) + catch + _, _ -> [] + end end def extract_all_scopes_from(specs) do