graphite-project/graphite-web — pull request #769 by macolu (2014-07-11 13:37:00+00:00)
Title: Fix TypeError

Hi

I am using graphite-web 0.9.x and whisper 0.9.x.

I have several series of this form:

* name.foo1.bar1
* name.foo1.bar2
* name.foo2.bar1
* name.foo2.bar2

When I call /render/ with this parameter:

```
target=sum(foo.*)
```

I get this exception:

```
Traceback (most recent call last):
File "/opt/python/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/graphite/webapp/graphite/render/views.py", line 113, in renderView
seriesList = evaluateTarget(requestContext, target)
File "/opt/graphite/webapp/graphite/render/evaluator.py", line 10, in evaluateTarget
result = evaluateTokens(requestContext, tokens)
File "/opt/graphite/webapp/graphite/render/evaluator.py", line 21, in evaluateTokens
return evaluateTokens(requestContext, tokens.expression)
File "/opt/graphite/webapp/graphite/render/evaluator.py", line 28, in evaluateTokens
args = [evaluateTokens(requestContext, arg) for arg in tokens.call.args]
File "/opt/graphite/webapp/graphite/render/evaluator.py", line 21, in evaluateTokens
return evaluateTokens(requestContext, tokens.expression)
File "/opt/graphite/webapp/graphite/render/evaluator.py", line 24, in evaluateTokens
return fetchData(requestContext, tokens.pathExpression)
File "/opt/graphite/webapp/graphite/render/datalib.py", line 230, in fetchData
dbResults = dbFile.fetch( timestamp(startTime), timestamp(endTime), timestamp(now))
TypeError: fetch() takes exactly 3 arguments (4 given)
```

To see what I want, I need to call it this way:

```
target=sum(foo.*.*)
```

However, I guess I should obtain the "no data" image instead of this exception.
The attached commit fixes that.

Thanks