Fix status code & styling

This commit is contained in:
Codemonkey51
2020-10-09 14:47:21 -07:00
committed by GitHub
parent d047feba9a
commit cbb4d0775a
+1 -1
View File
@@ -63,7 +63,7 @@ class AsyncDatabase:
async with session.delete(
self.db_url + "/" + urllib.parse.quote(key)
) as response:
if(response.status_code==404):
if response.status == 404:
raise KeyError(key)
response.raise_for_status()