MCPcopy
hub / github.com/pyload/pyload / fail

Method fail

module/plugins/internal/Base.py:390–402  ·  view source on GitHub ↗

Fail and give msg

(self, msg="")

Source from the content-addressed store, hash-verified

388
389 #@TODO: Remove in 0.4.10
390 def fail(self, msg=""):
391 """
392 Fail and give msg
393 """
394 msg = msg.strip()
395
396 if msg:
397 self.pyfile.error = msg
398 else:
399 msg = self.pyfile.error or self.info.get(
400 'error') or self.pyfile.getStatusName()
401
402 raise Fail(decode(msg)) # @TODO: Remove `encode` in 0.4.10
403
404 def error(self, msg="", type=_("Parse")):
405 type = _("%s error") % type.strip(

Callers 15

check_statusMethod · 0.95
errorMethod · 0.95
offlineMethod · 0.95
temp_offlineMethod · 0.95
restartMethod · 0.95
retryMethod · 0.95
decryptMethod · 0.45
decryptMethod · 0.45
decryptMethod · 0.45
signinMethod · 0.45
_prepareMethod · 0.45
check_errorsMethod · 0.45

Calls 4

FailClass · 0.85
getStatusNameMethod · 0.80
decodeFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected