Unhandled error processing page session : Traceback (most recent call last):
File "/Users/shikhar.vaish/Downloads/pheonix_project/atlas/.atlas/lib/python3.9/site-packages/flet_runtime/app.py", line 242, in on_session_created
await asyncio.get_running_loop().run_in_executor(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/futures.py", line 284, in __await__
yield self # This tells Task to wait for completion.
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/tasks.py", line 328, in __wakeup
future.result()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/futures.py", line 201, in result
raise self._exception
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/shikhar.vaish/Downloads/pheonix_project/atlas/flet/PyAlgoMate.py", line 253, in main
page.views[-1].update()
File "/Users/shikhar.vaish/Downloads/pheonix_project/atlas/flet/views/trades.py", line 176, in update
self.collectedPremiumText.update()
File "/Users/shikhar.vaish/Downloads/pheonix_project/atlas/.atlas/lib/python3.9/site-packages/flet_core/control.py", line 293, in update
assert self.__page, "Control must be added to the page first."
AssertionError: Control must be added to the page first.