Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show log button - filepath should be not NoneType #146

Open
sjib opened this issue Jun 12, 2024 · 0 comments
Open

Show log button - filepath should be not NoneType #146

sjib opened this issue Jun 12, 2024 · 0 comments

Comments

@sjib
Copy link
Contributor

sjib commented Jun 12, 2024

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):

  • QGEP plugin version
  • QGEP datamodel version
  • QGEP project file version
  • QGIS Version
  • OS

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant