Skip to content

Commit 06e271d

Browse files
author
j.s@google.com
committed
Resolves issue 262, ananlytics request should no longer require a dimension. Thanks Jim.
1 parent 14a414c commit 06e271d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/gdata/analytics/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ def AnalyticsDataFeedFromString(xml_string):
216216
for entry in feed.entry:
217217
for met in entry.metric:
218218
entry.__dict__[met.name.replace('ga:','')] = met
219-
for dim in entry.dimension:
220-
entry.__dict__[dim.name.replace('ga:','')] = dim
219+
if entry.dimension is not None:
220+
for dim in entry.dimension:
221+
entry.__dict__[dim.name.replace('ga:','')] = dim
221222

222-
return feed
223+
return feed

0 commit comments

Comments
 (0)