FrostyX / tracer

Tracer finds outdated running applications in your system
GNU General Public License v2.0
82 stars 24 forks source link

Python exception: AttributeError: 'str' object has no attribute 'name' #191

Open jroemmler opened 1 year ago

jroemmler commented 1 year ago

Hi,

using tracer 0.7.8 from my Fedora 37 distro, I ran into the following issue:

# tracer -iat 1669716276.6091385
You should restart:
[1] NetworkManager
[2] auditd
[3] firewalld
[4] metacity
[5] wireplumber
[6] wish
[7] x11vnc

Press application number for help or 'q' to quit
--> 4
Traceback (most recent call last):
  File "/usr/bin/tracer", line 34, in <module>
    tracer.main.run()
  File "/usr/lib/python3.11/site-packages/tracer/main.py", line 51, in run
    return router.dispatch()
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tracer/resources/router.py", line 56, in dispatch
    controller.render_interactive()
  File "/usr/lib/python3.11/site-packages/tracer/controllers/default.py", line 109, in render_interactive
    helper_controller.print_helper(filtered[int(answer) - 1], self.args)
  File "/usr/lib/python3.11/site-packages/tracer/controllers/helper.py", line 59, in print_helper
    affects = self._affects(app, affected_by)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tracer/controllers/helper.py", line 76, in _affects
    last = affected_by[-1].name()
           ^^^^^^^^^^^^^^^^^^^^
**AttributeError: 'str' object has no attribute 'name'**