1
0
Fork 0
mirror of https://github.com/clockfort/GitHub-Backup.git synced 2025-03-16 00:00:06 +01:00

Fixes 'NoneType' object has no attribute 'replace'

This commit is contained in:
Alun Davey 2015-05-19 16:34:36 +01:00
parent cc01c5deb0
commit f665e57d4a

View file

@ -115,7 +115,8 @@ def update_repo(repo, dir, args):
os.chdir(savedPath)
def shell_escape(str):
return "'" + unicode(str.replace("'", "\\'")).encode("utf-8") + "'"
if str:
return "'" + unicode(str.replace("'", "\\'")).encode("utf-8") + "'"
if __name__ == "__main__":
main()