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 = []