Skip to content

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

Open
@jroemmler

Description

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'**

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions