Commit 9a744d4
authored
Fix errors, issues and misconfigurations (#73)
Add try-except blocks to handle potential exceptions in various
functions and methods.
* **backend/code_parser.py**
- Add try-except block in `CodeParser` class constructor to handle
potential exceptions.
- Add try-except block in `save_analysis_to_db` method to handle
potential exceptions.
* **database/models.py**
- Fix typo in error message in `verify_component_connections` function.
---
For more details, open the [Copilot Workspace
session](https://copilot-workspace.githubnext.com/ProjectZeroDays/Project-Red-Sword/pull/73?shareId=d8aaf88e-078b-46e2-a56c-bbac8c43c17d).3 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
68 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
69 | 75 | | |
70 | 76 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments