Skip to content

Commit e2a2e87

Browse files
committed
properly start unauthenticated session if token can not be looked up
1 parent f32d79d commit e2a2e87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

obspy_github_api/obspy_github_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
msg = ("Could not get authorization token for ObsPy github API "
2323
"(env variable OBSPY_COMMIT_STATUS_TOKEN)")
2424
warnings.warn(msg)
25-
token = None
26-
27-
gh = github3.login(token=token)
25+
gh = github3.GitHub()
26+
else:
27+
gh = github3.login(token=token)
2828

2929

3030
def check_specific_module_tests_requested(issue_number):

0 commit comments

Comments
 (0)