stanley-king 2 年之前
父節點
當前提交
636a357720
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      plot/refill/ChannelPainter.py

+ 2 - 0
plot/refill/ChannelPainter.py

@@ -93,6 +93,8 @@ class ChannelPainter(object):
         reader = ChannelReader()
         tuple_pathes = reader.many_tuple_path(self._days, self._chnames, self._card_types, self._spec)
         gen = allpathes(self._reader, tuple_pathes, self._days, self._spec)
+        if len(self._days) == 0:
+            return []
 
         day_stamp = self._days[0]
         fig_create, fig_flush = self._fig_funs()