Commit ce1d1c8
authored
v1: Fix
* Replace Exception with specific error types
Replaces generic Exception raises with more specific error types such as RuntimeError, ValueError, NotImplementedError, ImportError, and custom exceptions across multiple modules. This improves error handling clarity and aligns with Python best practices for exception usage.
* Set res to None before running hook setup
Added initialization of the 'res' variable to None before executing hook setup in the Session class. This change clarifies the state of 'res' prior to its use and may help prevent potential issues with uninitialized variables.
* Improve upload size exceeded error message
The HTTP 413 error now includes the maximum allowed upload size in bytes for better clarity when the limit is exceeded.use_effect hook with async handler (#5762)1 parent fc43cf9 commit ce1d1c8
File tree
2 files changed
+3
-1
lines changed- sdk/python/packages
- flet-web/src/flet_web/fastapi
- flet/src/flet/messaging
2 files changed
+3
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| 349 | + | |
349 | 350 | | |
350 | 351 | | |
351 | 352 | | |
| |||
0 commit comments