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:
commit
92d2477198
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue