Skip to content

Commit

Permalink
[ui] CRF: minor core cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiencastan authored Aug 24, 2020
1 parent 2a564a8 commit cfd0301
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions meshroom/ui/components/csvData.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -76,8 +76,8 @@ def read(self):
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

Expand Down Expand Up @@ -122,4 +122,4 @@ def fillChartSerie(self, serie):
serie.append(float(index), float(value))

title = Property(str, lambda self: self._title, constant=True)
content = Property("QStringList", lambda self: self._content, constant=True)
content = Property("QStringList", lambda self: self._content, constant=True)

0 comments on commit cfd0301

Please sign in to comment.