mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 21:42:22 +00:00
reorder warning display
This commit is contained in:
@@ -4,14 +4,14 @@ from pydantic import BaseModel
|
||||
|
||||
|
||||
class Warning_(BaseModel):
|
||||
message: str
|
||||
category: str
|
||||
message: str
|
||||
|
||||
|
||||
def cast_warning(w: WarningMessage) -> Warning_:
|
||||
return Warning_(
|
||||
message=str(w.message),
|
||||
category=w.category.__name__,
|
||||
message=str(w.message),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user