Fix Podcast Description None

Error occurs when saving changes to sqlite DB when desc is None, as SQL field "description" is set "NOT NULL" in table "podcasts".  Desc must be empty string not None.
This commit is contained in:
Hiltronix 2019-08-19 22:29:34 -05:00
parent e03a3f1909
commit 08a0b8255b
1 changed files with 4 additions and 1 deletions

View File

@ -1009,7 +1009,10 @@ def get_first_line(s):
Returns only the first line of a string, stripped so
that it doesn't have whitespace before or after.
"""
return s.strip().split('\n')[0].strip()
try:
return s.strip().split('\n')[0].strip()
except:
return ''
def object_string_formatter(s, **kwargs):