Skip to content

fix: replace bare except with except Exception in get_achievements#27

Open
AmSach wants to merge 1 commit into
souravrs999:mainfrom
AmSach:fix/bare-except-block
Open

fix: replace bare except with except Exception in get_achievements#27
AmSach wants to merge 1 commit into
souravrs999:mainfrom
AmSach:fix/bare-except-block

Conversation

@AmSach
Copy link
Copy Markdown

@AmSach AmSach commented May 6, 2026

Fixed a bare except: clause in the get_achievements method at line 475 of fcbot.py. Bare except: catches all exceptions including system-exiting ones like KeyboardInterrupt and SystemExit, which can hide bugs and prevent proper shutdown. Changed to except Exception: to only catch actual program errors while allowing the bot to handle interrupts and shutdown requests normally.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant