How to Solve NameError: name 'S3Error' is not defined -- minio
Solution: Import the 'S3Error' module
To Solve the error, add the following line to the top of your code.
from minio.error import S3Error
For more information:
Python minio S3Error