fix: добавлен более подробный вывод ошибок в консоль

This commit is contained in:
Maxim Slipenko 2024-02-14 15:40:41 +03:00
parent d6c03ca3c8
commit 780d5b30fd

View File

@ -17,6 +17,7 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
import logging
import os import os
import sys import sys
@ -71,8 +72,11 @@ def onError(errorName: Exception):
QMessageBox.Ok, QMessageBox.Ok,
QMessageBox.Ok) QMessageBox.Ok)
logging.exception(errorName)
msgBox.exec_() msgBox.exec_()
class FloatDelegate(QStyledItemDelegate): class FloatDelegate(QStyledItemDelegate):
def __init__(self, parent=None): def __init__(self, parent=None):
QStyledItemDelegate.__init__(self, parent=parent) QStyledItemDelegate.__init__(self, parent=parent)