Replace 'is not' with '!='

This commit is contained in:
JacobPlaster
2020-01-06 15:44:21 +00:00
committed by Jacob Plaster
parent cea31acf9d
commit 2cde664359
3 changed files with 16 additions and 15 deletions

View File

@@ -41,7 +41,7 @@ class BfxRest:
async with aiohttp.ClientSession() as session:
async with session.get(url) as resp:
text = await resp.text()
if resp.status is not 200:
if resp.status != 200:
raise Exception('GET {} failed with status {} - {}'
.format(url, resp.status, text))
parsed = json.loads(text, parse_float=self.parse_float)