Skip to content

Commit cc0d54b

Browse files
author
Bill Prin
committed
Add Error Reporting Client
1 parent 26984b2 commit cc0d54b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gcloud/error_reporting/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import traceback
1818

1919
import gcloud.logging.client
20+
import six
2021

2122

2223
class HTTPContext(object):
@@ -172,7 +173,7 @@ def _send_error_report(self, message,
172173
# strip out None values
173174
# once py26 support is dropped this can use dict comprehension
174175
payload['context']['httpContext'] = dict(
175-
(k, v) for (k, v) in http_context_dict.iteritems()
176+
(k, v) for (k, v) in six.iteritems(http_context_dict)
176177
if v is not None
177178
)
178179

0 commit comments

Comments
 (0)