mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-20 15:24:21 +01:00
Replace 'is not' with '!='
This commit is contained in:
committed by
Jacob Plaster
parent
cea31acf9d
commit
2cde664359
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user