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

Merge pull request #20 from 4lun/master

Fixes 'NoneType' object has no attribute 'replace'
This commit is contained in:
Chris Lockfort 2015-10-15 03:42:38 -07:00
commit 92d2477198

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()