Commit e770c4b
fix: Resolve multiple handler implementation issues
- Fix gitlab_get_snippet TypeError by correcting _snippet_to_dict method signature
* Remove @staticmethod decorator and add self parameter
* Method was incorrectly defined as static but called as instance method
- Fix gitlab_batch_operations validation and error handling
* Add proper validation for operation structure (must be dict with 'type' field)
* Improve error messages for malformed operations
* Fix indentation in operation type checks
* Better debugging for 'Unknown operation type: None' errors
These fixes address TypeError and validation issues that were preventing
proper tool functionality. The methods now handle edge cases and provide
clearer error messages for debugging.1 parent 329c139 commit e770c4b
1 file changed
+28
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1201 | 1201 | | |
1202 | 1202 | | |
1203 | 1203 | | |
1204 | | - | |
1205 | | - | |
| 1204 | + | |
1206 | 1205 | | |
1207 | 1206 | | |
1208 | 1207 | | |
| |||
3378 | 3377 | | |
3379 | 3378 | | |
3380 | 3379 | | |
3381 | | - | |
3382 | | - | |
3383 | | - | |
3384 | | - | |
3385 | | - | |
3386 | | - | |
3387 | | - | |
3388 | | - | |
3389 | | - | |
3390 | | - | |
3391 | | - | |
3392 | | - | |
3393 | | - | |
3394 | | - | |
3395 | | - | |
3396 | | - | |
3397 | | - | |
3398 | | - | |
3399 | | - | |
3400 | | - | |
| 3380 | + | |
| 3381 | + | |
| 3382 | + | |
| 3383 | + | |
| 3384 | + | |
3401 | 3385 | | |
3402 | | - | |
| 3386 | + | |
| 3387 | + | |
| 3388 | + | |
| 3389 | + | |
| 3390 | + | |
| 3391 | + | |
| 3392 | + | |
| 3393 | + | |
| 3394 | + | |
| 3395 | + | |
| 3396 | + | |
| 3397 | + | |
| 3398 | + | |
| 3399 | + | |
| 3400 | + | |
| 3401 | + | |
| 3402 | + | |
| 3403 | + | |
| 3404 | + | |
| 3405 | + | |
| 3406 | + | |
| 3407 | + | |
3403 | 3408 | | |
3404 | 3409 | | |
3405 | 3410 | | |
| |||
0 commit comments