When trying to start agordejo (without install) it fail with the following message:
QTextBrowser: No document for index.html
[agordejo] ERROR 2022-07-18 18:17:51,641 engine.start: Caught crash in execpthook. Trying too execute atexit anyway
Traceback (most recent call last):
File "/home/brummer/projecte/Argodejo/build/agordejo", line 7, in <module>
mainwindow.MainWindow()
File "/home/brummer/projecte/Argodejo/build/qtgui/mainwindow.py", line 144, in __init__
self.changelog = Changelog(mainWindow=self)
File "/home/brummer/projecte/Argodejo/build/qtgui/changelog.py", line 55, in __init__
with open(PATHS["doc"] + "/CHANGELOG", "r") as f:
FileNotFoundError: [Errno 2]
this could be easily avoided by handle exceptions.
in changelog.py implement a try: hook for open the CHANGELOG.
try:
with open(PATHS["doc"] + "/CHANGELOG", "r") as f:
textEdit.setPlainText(f.read())
except IOError:
print("CHANGELOG not accessible")