Hey Zar, the error that you see is because of an empty frame. Most probably because of the way you are reading tello's frame.
To read tello's frame:
tello = Tello()
while True:
frameObject = tello.get_frame_read()
cv2.imshow("preview", frameObject.frame)
cv2.waitKey(1)
If you need any help...