From 9b2356e195db5d59df8444d37b62e3a81ce9b311 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 25 Aug 2020 13:39:17 +0100 Subject: [PATCH] Add return value --- posts.py | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/posts.py b/posts.py index 33bc00f6..2cd8c9c2 100644 --- a/posts.py +++ b/posts.py @@ -1287,8 +1287,10 @@ def createEventPost(baseDir: str, """Mobilizon-type Event post """ if not attachImageFilename: + print('Event has no attached image') return None if not category: + print('Event has no category') return None domainFull = domain if port: @@ -1305,19 +1307,19 @@ def createEventPost(baseDir: str, if followersOnly: toStr1 = toStr2 toStr2 = None - createPostBase(baseDir, nickname, domain, port, - toStr1, toStr2, - httpPrefix, content, followersOnly, saveToFile, - clientToServer, commentsEnabled, - attachImageFilename, mediaType, - imageDescription, useBlurhash, - False, False, None, None, subject, - schedulePost, eventDate, eventTime, location, - eventUUID, category, joinMode, - endDate, endTime, maximumAttendeeCapacity, - repliesModerationOption, - anonymousParticipationEnabled, - eventStatus, ticketUrl) + return createPostBase(baseDir, nickname, domain, port, + toStr1, toStr2, + httpPrefix, content, followersOnly, saveToFile, + clientToServer, commentsEnabled, + attachImageFilename, mediaType, + imageDescription, useBlurhash, + False, False, None, None, subject, + schedulePost, eventDate, eventTime, location, + eventUUID, category, joinMode, + endDate, endTime, maximumAttendeeCapacity, + repliesModerationOption, + anonymousParticipationEnabled, + eventStatus, ticketUrl) def getMentionedPeople(baseDir: str, httpPrefix: str,