* Calling the exception() method when future is in the cancelled state is causing a CancelledError
Calling the exception() method when future is in the cancelled state is causing a CancelledError. we should check the cancelled state first and call f.exception() only if it's not cancelled.
* modify lint
* modify lint
* Update CHANGELOG.md
* remove init()
* add future cancelled test code
* add future cancelled test code
* add future cancelled test code
* add future cancelled test code
* add future cancelled test code
* add future cancelled test code
* lint
* lint
* remove if condition
* modify test code
* lint
* lint
* remove pytest
---------
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>