Skip to content

[3.3.0] Ctrl+C shows backtrace, handling of KeyboardInterrupt could be improved #814

Closed

Description

@hartwork

Hi!

I just pressed Ctrl+C on SafeEyes and saw this:

# safeeyes 
^CTraceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/safeeyes", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.11/site-packages/safeeyes/__main__.py", line 38, in main
    safe_eyes.run(sys.argv)
  File "/usr/lib/python3.11/site-packages/gi/overrides/Gio.py", line 40, in run
    with register_sigint_fallback(self.quit):
  File "/usr/lib/python3.11/contextlib.py", line 144, in __exit__
    next(self.gen)
  File "/usr/lib/python3.11/site-packages/gi/_ossighelper.py", line 239, in register_sigint_fallback
    signal.default_int_handler(signal.SIGINT, None)
KeyboardInterrupt

It's not a major issue, but I consider it a bug still. I can make a pull request as needed.

Best, Sebastian

Activity

  1. archisman-panigrahi commented on Dec 21, 2025

    @archisman-panigrahi
    Collaborator

    I can make a pull request as needed.

    If you know how to fix this, please send a PR. Thanks!

  2. hartwork commented on Dec 21, 2025

    @hartwork
    ContributorAuthor

    @archisman-panigrahi if you press it early enough, there is no cure I believe. Pull request #816 improves things a bit.

  3. added a commit that references this issue on Dec 23, 2025
    473f16d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions