From 09e7191fef3f04f248b493281b9e99dcf9ef994e Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Sun, 19 Jul 2015 21:34:34 -0500 Subject: [PATCH] Execute googleclient commands in datastore creation check --- fitsync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fitsync.py b/fitsync.py index 5335671..d5b1654 100644 --- a/fitsync.py +++ b/fitsync.py @@ -96,14 +96,14 @@ def main(): try: googleClient.users().dataSources().get( userId='me', - dataSourceId=dataSourceId) + dataSourceId=dataSourceId).execute() except HttpError, error: if not 'DataSourceId not found' in str(error): raise error # Doesn't exist, so create it. googleClient.users().dataSources().create( userId='me', - body=dataSource) + body=dataSource).execute() datasetId = '%s-%s' % (minLogNs, maxLogNs)