Git Product home page Git Product logo

liaison's Introduction

Hi, I'm Cameron ๐Ÿ‘‹

๐Ÿป My resume is on my personal website: https://c.ruatta.com/

โšก I don't use Github for personal projects. I use Gitlab.

๐ŸŽฉ The work I do here is usually contributing to other Github repositories.

๐Ÿ“ง You'll find my contact information, along with my PGP key, on my website.

liaison's People

Contributors

cruatta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

liaison's Issues

Bug in string format for python 2.6

Any string format that uses empty curly braces like "{}".format(x) will not work on python2.6 and liaison will throw a ValueError exception when run in python2.6 due to this problem.

Percents are broken

All percents recorded by liaison are broken because ok and critical counts were cast as floats too late.

Missing type check in bin/liaison

[root@localhost vagrant]# liaison
Traceback (most recent call last):
  File "/usr/bin/liaison", line 19, in <module>
    main()
  File "/usr/bin/liaison", line 11, in main
    lc = load_config(args.config)
  File "/usr/lib/python2.6/site-packages/liaison/config.py", line 113, in load_config
    with open(path) as f:
TypeError: coercing to Unicode: need string or buffer, NoneType found

This is a problem with type checking in bin/liaison. It should verify that args.config is not None.

def main():
    parser = argparse.ArgumentParser()
    parser.add_argument('--config', help='Configuration file path')
    args = parser.parse_args()
    if 'config' in args and args.config is not None:
        lc = load_config(args.config)
    else:
        lc = LiaisonConfig()

    while True:
        loop(lc)

if __name__ == "__main__":
    main()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.