コード例 #1
0
 def report(self, msg, *args, **kargs):
     """ 'print' shortcut that includes some color and formatting """
     label = self._report_name()
     return util.report(label, msg, *args, **kargs)
コード例 #2
0
ファイル: service.py プロジェクト: andreyvit/ymir
 def report(self, msg, *args, **kargs):
     """ 'print' shortcut that includes some color and formatting """
     label = self._report_name()
     return util.report(label, msg, *args, **kargs)
コード例 #3
0
def catch_network_error(exc):
    if isinstance(exc, fabric.exceptions.NetworkError):
        util.report('NetworkError', 'sleeping and retrying')
        return True
コード例 #4
0
ファイル: service.py プロジェクト: andreyvit/ymir
def catch_network_error(exc):
    if isinstance(exc, fabric.exceptions.NetworkError):
        util.report('NetworkError', 'sleeping and retrying')
        return True