diff options
| author | 2020-01-11 17:38:46 -0500 | |
|---|---|---|
| committer | 2020-01-11 17:38:46 -0500 | |
| commit | eaaebe963c0b9f79ce18142e343f57ef85fdd88c (patch) | |
| tree | df751cafae80768dc7afa6c1a7fdc92f50d72bb2 /bot/cogs/alias.py | |
| parent | Update Code Jam Participant ID (diff) | |
Add handling for empty PEP metadata values
Some PEPs have a metadata field that is present but has an empty value (e.g. PEP 249), causing an exception to be raised when attempting to add it as an embed field value, which cannot be empty.
This refactors the information parsing to prevent the field from being added if there is no value to provide, as well as cut down on copy+paste when populating fields in the embed.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions