# HG changeset patch # User neko259 # Date 2016-05-10 12:50:17 # Node ID dd8d22d4c668208e87fb00796f27dbd05c79d5ab # Parent a2395a6b89c60e30e37954ae76be65782dc95f65 Fixed issue with tripcode diff --git a/boards/models/post/sync.py b/boards/models/post/sync.py --- a/boards/models/post/sync.py +++ b/boards/models/post/sync.py @@ -180,7 +180,11 @@ class SyncManager: title = tag_content.find(TAG_TITLE).text or '' text = tag_content.find(TAG_TEXT).text or '' pub_time = tag_content.find(TAG_PUB_TIME).text - tripcode = tag_content.find(TAG_TRIPCODE).text + tripcode_tag = tag_content.find(TAG_TRIPCODE) + if tripcode_tag is not None: + tripcode = tripcode_tag.text or '' + else: + tripcode = '' thread = tag_content.find(TAG_THREAD) tags = []