From d4d2f0e04f1e1bd3cc806a6a9622a919ef986329 Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Mon, 23 Jun 2014 10:34:54 +0200 Subject: [PATCH] Fix empty --- pygal/ghost.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pygal/ghost.py b/pygal/ghost.py index e94b4d9..4347010 100644 --- a/pygal/ghost.py +++ b/pygal/ghost.py @@ -98,7 +98,8 @@ class Ghost(object): self.config(**self.__dict__) self.config.__dict__.update(overrides or {}) series = self.make_series(self.raw_series) - secondary_series = self.make_series(self.raw_series2, len(series)) + secondary_series = self.make_series( + self.raw_series2, len(series or [])) self._last__inst = self.cls( self.config, series, secondary_series, self.uuid, self.xml_filters)