示例#1
0
def main():
    " Go, go, go! "
    try:
        return dispatch() or 0
    except PBException as ex:
        return 1
    except KeyboardInterrupt:
        pass
    return 0
示例#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
示例#3
0
文件: main.py 项目: n-west/pybombs2
def main():
    " Go, go, go! "
    try:
        return dispatch() or 0
    except KeyboardInterrupt:
        pass
示例#4
0
def main():
    " Go, go, go! "
    try:
        return dispatch() or 0
    except KeyboardInterrupt:
        pass