mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 15:28:34 +01:00
updater: use response.json()
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
+1
-2
@@ -1,6 +1,5 @@
|
||||
import os
|
||||
import time
|
||||
import json
|
||||
import requests
|
||||
|
||||
from dvc import VERSION_BASE
|
||||
@@ -36,7 +35,7 @@ class Updater(object):
|
||||
|
||||
try:
|
||||
r = requests.get(self.URL)
|
||||
j = json.loads(r.content)
|
||||
j = r.json()
|
||||
latest = j['version']
|
||||
open(self.updater_file, 'w+').close()
|
||||
except Exception as exc:
|
||||
|
||||
Reference in New Issue
Block a user