AttorneyOnline / tsuserver3

An Attorney Online server.
GNU Affero General Public License v3.0
25 stars 51 forks source link

Define asset url if it does not exist #183

Closed caleb-mabry closed 3 years ago

caleb-mabry commented 3 years ago

When the yaml is parsed from the config, if the variable is not defined it will come out as an empty string. I want to keep the behavior of the empty string rather than setting it as None and having to check it in other place.

EDIT: I was wrong, if the value is empty in the yaml pyyaml sets it to None. This change was reflected in the latest commit

stonedDiscord commented 3 years ago

this still sends None if asset_url is present in config.yaml but has nothing set after it like in the sample config

caleb-mabry commented 3 years ago

@stonedDiscord Great catch! I've fixed it in my latest commit.