Addon Manager: Refactor Metadata
Create a Python-native metadata class. Includes unit tests, and some PyLint cleanup.
This commit is contained in:
committed by
Chris Hennes
parent
243088a8c3
commit
0b241f78f4
@@ -27,7 +27,7 @@ from typing import Optional
|
||||
|
||||
import FreeCAD
|
||||
from PySide import QtCore
|
||||
import NetworkManager
|
||||
import addonmanager_utilities as utils
|
||||
|
||||
translate = FreeCAD.Qt.translate
|
||||
|
||||
@@ -67,7 +67,7 @@ class ConnectionChecker(QtCore.QThread):
|
||||
"""The main work of this object: returns the decoded result of the connection request, or
|
||||
None if the request failed"""
|
||||
url = "https://api.github.com/zen"
|
||||
result = NetworkManager.AM_NETWORK_MANAGER.blocking_get(url)
|
||||
result = utils.blocking_get(url)
|
||||
if result:
|
||||
return result.data().decode("utf8")
|
||||
return result.decode("utf8")
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user