Skip to content

Conversation

@jvstme
Copy link
Collaborator

@jvstme jvstme commented Jan 14, 2026

This improves the script error message if the
GitHub API call is not successful (e.g., if the
token is expired).

Before:

TypeError: string indices must be integers, not 'str'

After:

Exception: Error getting GitHub releases; status: 401, body: {
  "message": "Bad credentials",
  "documentation_url": "https://docs.github.com/rest",
  "status": "401"
}

This improves the script error message if the
GitHub API call is not successful (e.g., if the
token is expired).

Before:

```
TypeError: string indices must be integers, not 'str'
```

After:

```
Exception: Error getting GitHub releases; status: 401, body: {
  "message": "Bad credentials",
  "documentation_url": "https://docs.github.com/rest",
  "status": "401"
}
```
@jvstme jvstme merged commit a36577f into master Jan 14, 2026
28 checks passed
@jvstme jvstme deleted the release_notes_error_handling branch January 14, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants