Fix dialyzer error in scopes compiler: Add error handling for extract_all_scopes/0
This commit is contained in:
parent
9ea55a3888
commit
daad35aeb9
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue