Skip to content

Commit 002cdd8

Browse files
authored
Update check_orgs.jl: Handle errors; also, remove an org that no longer exists (JuliaAstrodynamics) (#2299)
1 parent 4e09879 commit 002cdd8

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

community/organizations.md

-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ The following is a non-comprehensive list of Julia GitHub organizations, grouped
104104
### Astronomy/Space
105105

106106
* [JuliaAstro](https://github.com/JuliaAstro)[Astronomy](https://juliaastro.github.io/)
107-
* [JuliaAstrodynamics](https://github.com/JuliaAstrodynamics)
108107
* [juliahci](https://github.com/juliahci) – High-contrast imaging
109108
* [JuliaSpace](https://github.com/JuliaSpace)
110109

tools/check_orgs/check_orgs.jl

+8-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,14 @@ function check_orgs()
1919
for org_match in orgs
2020
org = split(org_match.captures[1], "https://github.com/", keepempty=false)[1]
2121
org = split(org, "http://github.com/", keepempty=false)[1]
22-
members, page_data = GitHub.members(Owner(org), auth=myauth, public_only=true)
23-
if length(members) < 2
22+
members = nothing
23+
try
24+
members, page_data = GitHub.members(Owner(org), auth=myauth, public_only=true)
25+
catch e
26+
err_msg = sprint(showerror, e)
27+
println("Error processing organization '$org':\n$err_msg")
28+
end
29+
if isnothing(members) || length(members) < 2
2430
println(" - $org $(length(members)) members")
2531
num_below += 1
2632
end

0 commit comments

Comments
 (0)