More exception handling!

main
Bob Mottram 2021-09-15 20:04:29 +01:00
parent 97d6724e0d
commit 1e498daf25
1 changed files with 6 additions and 1 deletions

View File

@ -549,7 +549,12 @@ def _convertRSStoActivityPub(baseDir: str, httpPrefix: str,
except BaseException:
print('Newswire strptime failed ' + str(dateStr))
continue
dateStr = dateStrWithOffset.strftime("%Y-%m-%dT%H:%M:%SZ")
try:
dateStr = dateStrWithOffset.strftime("%Y-%m-%dT%H:%M:%SZ")
except BaseException:
print('Newswire dateStrWithOffset failed ' +
str(dateStrWithOffset))
continue
statusNumber, published = getStatusNumber(dateStr)
newPostId = \