Skip to content

Commit

Permalink
check that we have a string, skips empty targets
Browse files Browse the repository at this point in the history
  • Loading branch information
obfuscurity committed Oct 3, 2015
1 parent 2b55420 commit 39d7870
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/graphite/render/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ def renderView(request):
requestContext['prefetchedRemoteData'] = prefetchRemoteData(requestContext, pathExpressions)
log.rendering("Prefetching remote data took %.6f" % (time() - t))
for target in targets:
if not target.strip():
continue
t = time()
seriesList = evaluateTarget(requestContext, target)
log.rendering("Retrieval of %s took %.6f" % (target, time() - t))
Expand Down

0 comments on commit 39d7870

Please sign in to comment.