Skip to content

Refactor: improve exception handling and remove dead code#446

Open
Khushi281300 wants to merge 1 commit intoJdeRobot:masterfrom
Khushi281300:fix/inputs-code-quality-443
Open

Refactor: improve exception handling and remove dead code#446
Khushi281300 wants to merge 1 commit intoJdeRobot:masterfrom
Khushi281300:fix/inputs-code-quality-443

Conversation

@Khushi281300
Copy link
Copy Markdown

Description

This PR addresses the minor code-quality and technical debt issues I identified in synthesis/lib/inputs.py.

Specifically, it:

  1. Narrows the bare except: block to except FileNotFoundError: in create_number_wire(), making error handling explicit and aligning with PEP 8 standards.
  2. Removes the _init_enabled(self) function, which was explicitly marked as redundant and unused dead code.
  3. Cleans up formatting and a few resolved TODO comments nearby for readability.

Related Issues

Fixes #443

JdeRobot#443)

- Replaced bare \except:\ with \except FileNotFoundError:\ in \create_number_wire()\ to adhere to PEP 8 standards.
- Removed the unused \_init_enabled()\ function.
- Cleaned up resolved TODO comments regarding wire initialization.
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.

Improve exception handling and remove dead code in inputs.py

1 participant