Initialize utf_content

This commit is contained in:
Joey Payne 2016-05-25 14:29:40 -06:00
commit cf21a319f5

View file

@ -52,6 +52,7 @@ class GoogleFile(object):
create_params = {} create_params = {}
if content: if content:
utf_content = content
try: try:
utf_content = content.encode('utf-8') utf_content = content.encode('utf-8')
except UnicodeDecodeError: except UnicodeDecodeError:
@ -217,6 +218,7 @@ class GoogleFile(object):
params = {} params = {}
if content: if content:
utf_content = content
try: try:
utf_content = content.encode('utf-8') utf_content = content.encode('utf-8')
except UnicodeDecodeError: except UnicodeDecodeError: