QGEP / qgepqwat2ili

3 stars 3 forks source link

Show log button - filepath should be not NoneType #146

Open sjib opened 5 months ago

sjib commented 5 months ago

Describe the bug

2024-06-12T16:40:44     WARNING    Traceback (most recent call last):
              File "C:\Users/Stefan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgepplugin\qgepqwat2ili\qgepqwat2ili\gui\__init__.py", line 64, in 
              button.pressed.connect(lambda p=log_path: webbrowser.open(p))
              File "C:\PROGRA~1\QGIS 3.28.4\apps\Python39\lib\webbrowser.py", line 86, in open
              if browser.open(url, new, autoraise):
              File "C:\PROGRA~1\QGIS 3.28.4\apps\Python39\lib\webbrowser.py", line 603, in open
              os.startfile(url)
             TypeError: startfile: filepath should be string, bytes or os.PathLike, not NoneType

To Reproduce Exact steps to reproduce the behavior:

  1. Make an INTERLIS export
  2. Click the the "Show logs" Button
  3. See error

Expected behavior Either button should not be displayed with that message or link should be correct to display the logs.

Screenshots / data 20240612_error_show_log_button

Desktop (please complete the following information):

Additional context Add any other context about the problem here.