wang1986one / pyo

Automatically exported from code.google.com/p/pyo
GNU General Public License v3.0
0 stars 0 forks source link

Bad error message when creating PyoObjects when Server is not running #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
>>> import pyo
pyo version 0.5.0 (uses single precision)
>>> pyo.Noise()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.6/dist-packages/pyolib/generators.py", line 380, in __init__
    self._base_objs = [Noise_base(wrap(mul,i), wrap(add,i)) for i in range(lmax)]
TypeError: an integer is required

It should rather raise a RuntimeError with a message such as "There is no pyo 
Server running." or something like that.

Original issue reported on code.google.com by que...@gmail.com on 21 Nov 2011 at 10:20

GoogleCodeExporter commented 9 years ago
Yes, I agree... I'll see what I can do!

Original comment by belan...@gmail.com on 21 Nov 2011 at 11:14

GoogleCodeExporter commented 9 years ago
Done.

Original comment by belan...@gmail.com on 22 Nov 2011 at 3:21