From cfd03016b2eba53167a69ca74b6ef569d90196dd Mon Sep 17 00:00:00 2001 From: Fabien Castan Date: Mon, 24 Aug 2020 18:36:47 +0200 Subject: [PATCH] [ui] CRF: minor core cleanup --- meshroom/ui/components/csvData.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meshroom/ui/components/csvData.py b/meshroom/ui/components/csvData.py index e41ffd13..c9ecef2f 100644 --- a/meshroom/ui/components/csvData.py +++ b/meshroom/ui/components/csvData.py @@ -1,6 +1,6 @@ from meshroom.common.qt import QObjectListModel -from PySide2.QtCore import QObject, Slot, Signal, Property, Qt +from PySide2.QtCore import QObject, Slot, Signal, Property from PySide2.QtCharts import QtCharts import csv @@ -76,8 +76,8 @@ class CsvData(QObject): for elt in csvRows[1:]: for idx, value in enumerate(elt): dataList[idx].appendValue(value) - except: - logging.error("CsvData: Failed to load file: {}".format(self._filepath)) + except Exception as e: + logging.error("CsvData: Failed to load file: {}\n{}".format(self._filepath, str(e))) return dataList @@ -122,4 +122,4 @@ class CsvColumn(QObject): serie.append(float(index), float(value)) title = Property(str, lambda self: self._title, constant=True) - content = Property("QStringList", lambda self: self._content, constant=True) \ No newline at end of file + content = Property("QStringList", lambda self: self._content, constant=True)