projects
/
hamn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e45c5e6
)
Band-aid fix for feed as well
author
Magnus Hagander
<
[email protected]
>
Fri, 28 Jun 2019 14:51:21 +0000
(16:51 +0200)
committer
Magnus Hagander
<
[email protected]
>
Fri, 28 Jun 2019 14:51:21 +0000
(16:51 +0200)
hamnadmin/hamnadmin/register/feeds.py
patch
|
blob
|
blame
|
history
diff --git
a/hamnadmin/hamnadmin/register/feeds.py
b/hamnadmin/hamnadmin/register/feeds.py
index 0626e4d4c4de25ba057db3d61c892baadbd07ebc..d727d62344e426f2bb23d896ef6eb12c26aa7dfa 100644
(file)
--- a/
hamnadmin/hamnadmin/register/feeds.py
+++ b/
hamnadmin/hamnadmin/register/feeds.py
@@
-34,6
+34,9
@@
class PostFeed(Feed):
def item_description(self, item):
if hasattr(item, 'short'):
- return TruncateAndClean(item.txt)
+ try:
+ return TruncateAndClean(item.txt)
+ except Exception as e:
+ return "Unable to clean HTML"
else:
return item.txt