Git Product home page Git Product logo

rabbitsay's People

Contributors

cbeck527 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rabbitsay's Issues

Validate spacing input

If the absolute value of the spacing is more than the length of the message, it the command bombs out.

# rabbitsay --spacing -5 "hi"

Traceback (most recent call last):
  File "/Users/chris/.virtualenvs/rabbitsay/bin/rabbitsay", line 11, in <module>
    load_entry_point('RabbitSay', 'console_scripts', 'rabbitsay')()
  File "/Users/chris/.virtualenvs/rabbitsay/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/Users/chris/.virtualenvs/rabbitsay/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/Users/chris/.virtualenvs/rabbitsay/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/chris/.virtualenvs/rabbitsay/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/Users/chris/Code/rabbitsay/cli.py", line 23, in main
    output = rabbitsay.rabbitsay(spacing, message)
  File "/Users/chris/Code/rabbitsay/rabbitsay/rabbitsay.py", line 26, in rabbitsay
    for line in lines
  File "/Users/chris/Code/rabbitsay/rabbitsay/rabbitsay.py", line 26, in <genexpr>
    for line in lines
ValueError: Sign not allowed in string format specifier

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.