fix fish's 500

im commiting this on my phone lol
remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-10-19 18:03:56 -07:00 committed by GitHub
parent cbfb2c2c99
commit 546883dcd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ if SITE not in ('pcmemes.net', 'watchpeopledie.tv'):
def remove_asset(cls, type_name:str, v:User, name:str) -> dict[str, str]:
if cls not in ASSET_TYPES: raise Exception("not a valid asset type")
name = name.lower.strip()
name = name.lower().strip()
if not name:
abort(400, f"You need to specify a {type_name}!")
asset = g.db.query(cls).filter_by(name=name).one_or_none()