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()
0x92 is a smart quote(’) of Windows-1252. It simply doesn't exist in unicode, therefore it can't be decoded.
Maybe your file was edited by a Windows machine which basically caused this problem?
Use encoding='cp1252' will solve the issue.
encoding='cp1252'