FS#68759 - [gufw] Crashes when launching if there are profile errors

Attached to Project: Community Packages
Opened by txtsd (txtsd) - Friday, 27 November 2020, 13:20 GMT
Last edited by Levente Polyak (anthraxx) - Thursday, 14 January 2021, 23:20 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: This is exactly what's happening: https://github.com/costales/gufw/issues/9
I have mosh and ufw-extras installed so there is a mosh profile.
I try to launch gufw and it fails with the following output:
```
λ gufw
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/gufw/gufw.py", line 30, in <module>
gufw = Gufw(controler.get_frontend())
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/gufw.py", line 80, in __init__
self._set_initial_values()
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/gufw.py", line 283, in _set_initial_values
self.listening = ListeningReport(self)
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/listening.py", line 35, in __init__
self._show_report()
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/listening.py", line 48, in _show_report
self._view_report(report, self.previous_report)
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/listening.py", line 83, in _view_report
self.gufw.listening_model.set_value(iter_row, 1, int(line_split[1].strip())) # port
ValueError: invalid literal for int() with base 10: 'WARN:'
```


Additional info:
* package version(s): ["ufw 0.36-3", "ufw-extras 0.5-2", "gufw 20.04.1-2", "mosh 1.3.2-12"]
* link to upstream bug report: https://github.com/costales/gufw/issues/9

Steps to reproduce:
* Install mosh and ufw-extras
* Try to launch gufw
This task depends upon

Closed by  Levente Polyak (anthraxx)
Thursday, 14 January 2021, 23:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  21.04.0-1
Comment by txtsd (txtsd) - Friday, 27 November 2020, 13:30 GMT Comment by txtsd (txtsd) - Sunday, 10 January 2021, 04:54 GMT
@anthraxx If you're busy could you assign this to someone else?

Loading...