I am getting the following error while executing the below code snippet exactly at the line if uID in repo.git.log():, the problem is in repo.git.log()
if uID in repo.git.log():
repo.git.log()
Use encoding='cp1252' will solve the issue.
encoding='cp1252'