Exemplo n.º 1
0
def main():
    " Go, go, go! "
    try:
        return dispatch() or 0
    except PBException as ex:
        return 1
    except KeyboardInterrupt:
        pass
    return 0
Exemplo n.º 2
0
def main():
    " Go, go, go! "
    try:
        return dispatch() or 0
    except PBException as ex:
        from pybombs import pb_logging
        if pb_logging.logger.getEffectiveLevel() <= pb_logging.DEBUG:
            pb_logging.logger.debug(str(ex))
        return 1
    except KeyboardInterrupt:
        pass
    return 0
Exemplo n.º 3
0
def main():
    " Go, go, go! "
    try:
        return dispatch() or 0
    except KeyboardInterrupt:
        pass
Exemplo n.º 4
0
def main():
    " Go, go, go! "
    try:
        return dispatch() or 0
    except KeyboardInterrupt:
        pass