graphite-project/graphite-web — pull request #96 by keves (2012-11-11 23:30:57+00:00)
Title: fix bug in cactiStyle (failing when no series data is available at all)

When using cactiStyle on a group of serieses and none of them contains any data, cactiStyle fails:
```
Traceback (most recent call last):
File "/home/ssmon/graphite-env/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/opt/graphite/webapp/graphite/render/views.py", line 104, 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 29, in evaluateTokens
return func(requestContext, *args)
File "/opt/graphite/webapp/graphite/render/functions.py", line 836, in cactiStyle
nameLen = max([] + [len(getattr(series,"name")) for series in seriesList])
ValueError: max() arg is an empty sequence
```

The proposed pull request fixes this