Git Product home page Git Product logo

bragly's People

Contributors

huntcsg avatar

Stargazers

 avatar

Watchers

 avatar

bragly's Issues

Error when running any command with a positional argument

$ brag s
No configuration found, using default configuration: 
Traceback (most recent call last):
  File "/usr/local/bin/brag", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/bragly/__main__.py", line 36, in main
    for result in results:
  File "/usr/local/lib/python2.7/site-packages/bragly/brag.py", line 92, in search
    for result in results:
  File "/usr/local/lib/python2.7/site-packages/bragly/persist.py", line 77, in search
    mech, config = _get_module_and_kwargs_from_config(mechanism)
  File "/usr/local/lib/python2.7/site-packages/bragly/persist.py", line 93, in _get_module_and_kwargs_from_config
    config = get_config(mechanism)
  File "/usr/local/lib/python2.7/site-packages/bragly/config.py", line 49, in get_config
    if 'mechanism' in conf_parser:
TypeError: argument of type 'instance' is not iterable

Exceptions not handled internally

Currently exceptions aren't being handled at all. This means under certain circumstances, an end user of the brag or brag-util scripts will get a python traceback instead of a useful error message (with possible ways to fix the error).

At the very minimum exceptions should be caught by the main scripts and replaced with a user friendly error message. Possibly, they should accept a --debug argument to pass the exception through, and perhaps a verbose argument to log all actions for debugging of issues.

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.