Skip to content

Commit

Permalink
Get rid of AttrDict
Browse files Browse the repository at this point in the history
  • Loading branch information
aluminiumgeek committed Jun 21, 2016
1 parent af0993b commit 7d0ded4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion modules/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
redis==2.10.5
attrdict==2.0.0
aiohttp==0.21.5
3 changes: 1 addition & 2 deletions modules/user_btc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import json
from attrdict import AttrDict

from modules.utils import http

Expand All @@ -18,7 +17,7 @@ async def main(bot, *args, **kwargs):
for ticker in tickers:
try:
response_body = await http.perform_request(ticker['url'], 'GET')
response_json = AttrDict(json.loads(response_body))
response_json = json.loads(response_body)
except:
continue

Expand Down

0 comments on commit 7d0ded4

Please sign in to comment.