From cf21a319f57f26d0cb969d3fe6dd2e047971dc44 Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Wed, 25 May 2016 14:29:40 -0600 Subject: [PATCH] Initialize utf_content --- drivepy/files.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivepy/files.py b/drivepy/files.py index acd93fb..8c0b198 100644 --- a/drivepy/files.py +++ b/drivepy/files.py @@ -52,6 +52,7 @@ class GoogleFile(object): create_params = {} if content: + utf_content = content try: utf_content = content.encode('utf-8') except UnicodeDecodeError: @@ -217,6 +218,7 @@ class GoogleFile(object): params = {} if content: + utf_content = content try: utf_content = content.encode('utf-8') except UnicodeDecodeError: