Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions wordpress/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
# from requests import request
import logging
from json import dumps as jsonencode

from six import text_type, binary_type
from wordpress.auth import BasicAuth, OAuth, OAuth_3Leg
from wordpress.helpers import StrUtils, UrlUtils
Expand Down Expand Up @@ -105,7 +104,7 @@ def request_post_mortem(self, response=None):

if isinstance(response_json, dict) and ('code' in response_json or 'message' in response_json):
reason = u" - ".join([
unicode(response_json.get(key)) for key in ['code', 'message', 'data'] \
str(response_json.get(key)) for key in ['code', 'message', 'data'] \
if key in response_json
])
code = response_json.get('code')
Expand Down