예제 #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