Skip to content
New issue

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

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

Already on GitHub? # to your account

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

Open
jroemmler opened this issue Nov 29, 2022 · 0 comments
Open
Labels
bug effort/medium Can be done in 1-2 days gain/medium Affects multiple users

Comments

@jroemmler
Copy link

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

@FrostyX FrostyX added the bug label Nov 26, 2023
@FrostyX FrostyX added effort/medium Can be done in 1-2 days gain/medium Affects multiple users labels Jan 1, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug effort/medium Can be done in 1-2 days gain/medium Affects multiple users
Projects
None yet
Development

No branches or pull requests

2 participants