Skip to content

Commit

Permalink
fix iteritems
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiju Yamada committed Jun 5, 2024
1 parent 42326cf commit 6dbecc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/mujinwebstackclient/webstackclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ def CreateLogEntries(self, logEntries, timeout=5):
for logType, logEntry, attachments in logEntries:
files.append((u'logEntry/%s' % logType, ('', json.dumps(logEntry), 'application/json')))
if attachments is not None:
for attachmentName, attachmentData in attachments.iteritems():
for attachmentName, attachmentData in six.iteritems(attachments):
files.append((u'attachment', (attachmentName, attachmentData)))
return self._webclient.APICall('POST', u'logEntry', files=files, timeout=timeout, apiVersion='v2')

Expand Down

0 comments on commit 6dbecc0

Please sign in to comment.