Skip to content

Remove redundant try/except DEBUG block in sta2rest.py#178

Open
Prinxeeee wants to merge 1 commit into
istSOS:mainfrom
Prinxeeee:remove-debug-dead-code
Open

Remove redundant try/except DEBUG block in sta2rest.py#178
Prinxeeee wants to merge 1 commit into
istSOS:mainfrom
Prinxeeee:remove-debug-dead-code

Conversation

@Prinxeeee
Copy link
Copy Markdown
Contributor

Problem
DEBUG is already imported from app on the line above the block:

from app import AUTHORIZATION, DEBUG, NETWORK, VERSION, VERSIONING

try:
    DEBUG = DEBUG  # does nothing
except:
    DEBUG = 0      # never reached

DEBUG is always defined at this point — the try/except can never raise, making the entire block dead code.

Change

  • sta2rest.py: removed the 4-line try/except DEBUG block

Notes

  • No behavior change

@Prinxeeee Prinxeeee force-pushed the remove-debug-dead-code branch from 3a5e9f0 to 81dc6ac Compare April 23, 2026 19:45
@Prinxeeee Prinxeeee force-pushed the remove-debug-dead-code branch from 81dc6ac to d85a084 Compare April 23, 2026 19:50
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