Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Urbano Plugin throws exception when topic not found. #6

Open
tian2992 opened this issue Aug 25, 2013 · 0 comments
Open

Urbano Plugin throws exception when topic not found. #6

tian2992 opened this issue Aug 25, 2013 · 0 comments
Assignees
Labels

Comments

@tian2992
Copy link
Owner

Urbano throws error when called with a not-found parameter.

Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 524, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
--- <exception caught here> ---
  File "/home/tian/tio_chema/venv/local/lib/python2.7/site-packages/twisted/python/threadpool.py", line 172, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/home/tian/tio_chema/venv/local/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/home/tian/tio_chema/venv/local/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
    return func(*args,**kw)
  File "/home/tian/tio_chema/plugins/urbano.py", line 35, in execute
    respuesta = definiciones[ randint( 0, len( definiciones ) - 1 ) ]
  File "/usr/lib/python2.7/random.py", line 241, in randint
    return self.randrange(a, b+1)
  File "/usr/lib/python2.7/random.py", line 217, in randrange
    raise ValueError, "empty range for randrange() (%d,%d, %d)" % (istart, istop, width)
exceptions.ValueError: empty range for randrange() (0,0, 0)
@ghost ghost assigned aranaX and tian2992 Aug 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants