Browse Source

jdjjd

Signed-off-by: Binren Zhnag <zhangbr@elab-plus.com>
Binren Zhnag 4 years ago
parent
commit
8a5c6bd592
1 changed files with 5 additions and 1 deletions
  1. 5 1
      jianye_report.py

+ 5 - 1
jianye_report.py

@@ -201,7 +201,11 @@ class JianYeReport(object):
         data_1 = []
         for id in house_ids:
             sub = [id]
-            sub.extend(self.get_house_pv_data(id, time_type))
+            try:
+                sub.extend(self.get_house_pv_data(id, time_type))
+            except Exception as e:
+                print(e)
+                sub.extend([0, 0, 0, 0])
             data_1.append(sub)
         data_2 = []
         for id in house_ids: