-
-
Notifications
You must be signed in to change notification settings - Fork 751
Code Snippets: Check if API Response is None #1554
Copy link
Copy link
Closed
Labels
a: informationRelated to information commands: (doc, help, information, reddit, site, tags)Related to information commands: (doc, help, information, reddit, site, tags)good first issueGood for newcomersGood for newcomersl: 0 - beginnerp: 3 - lowLow PriorityLow Priorityt: bugSomething isn't workingSomething isn't working
Metadata
Metadata
Assignees
Labels
a: informationRelated to information commands: (doc, help, information, reddit, site, tags)Related to information commands: (doc, help, information, reddit, site, tags)good first issueGood for newcomersGood for newcomersl: 0 - beginnerp: 3 - lowLow PriorityLow Priorityt: bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Sentry Issue: BOT-Z7
When
_fetch_responsecatches an exception, it returnsNone. The code that uses the response does not check if it'sNone, leading to the error below. I think it's only used in_snippet_to_codeblock, so aNonecheck in there should suffice.