MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / __networkAccessCheck

Method __networkAccessCheck

service/network.py:127–132  ·  view source on GitHub ↗
(self, type)

Source from the content-addressed store, hash-verified

125 raise Error(error)
126
127 def __networkAccessCheck(self, type):
128 # Make sure request is enabled
129 access = NetworkSettings.getInstance().getAccess()
130 if not self.ENABLED & access or not type & access:
131 pyfalog.warning('Access not enabled - please enable in Preferences > Network')
132 raise Error('Access not enabled - please enable in Preferences > Network')
133
134 def __getHeaders(self):
135 versionString = '{0}'.format(config.version)

Callers 2

getMethod · 0.95
postMethod · 0.95

Calls 3

ErrorClass · 0.85
getAccessMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected