Skip to content

Commit 5b0b026

Browse files
Merge pull request #97 from metakgp/fix-parse-body
fix: nullptr error in parsing body
2 parents a66331e + 54a2c16 commit 5b0b026

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mftp/ntfy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def format_notices(notices):
6161
--------------
6262
'''
6363
except Exception as e:
64-
logging.error(f" Failed to parse notification body ~ {str(e)}")
64+
logging.error(f" Failed to parse notification body ~ {str(e)}", exc_info=True)
6565
break
6666

6767
# NTFY specific features
@@ -205,7 +205,7 @@ def delete_file(file_name):
205205
def parse_body(body_data, time):
206206
body = ''
207207
for br in body_data.find_all('br'):
208-
body = body + br.next_sibling.strip() + '\n'
208+
body = body + str(br.next_sibling).strip() + '\n'
209209

210210
body = body + time
211211

0 commit comments

Comments
 (0)