gemini.git

going-flying.com gemini git repository

summary

tree

log

refs

ef8927fb6ca355d0aa8697858f0f2d669633a271 - Matthew Ernisse - 1698498268

silence warning

view tree

view raw

diff --git a/files/thoughts-to-gemini.py b/files/thoughts-to-gemini.py
index f55d610..00ae223 100755
--- a/files/thoughts-to-gemini.py
+++ b/files/thoughts-to-gemini.py
@@ -34,9 +34,10 @@ import os
 import requests
 import sys
 import time
+import warnings
 import zoneinfo
 
-from bs4 import BeautifulSoup
+from bs4 import BeautifulSoup, MarkupResemblesLocatorWarning
 from feedgen.feed import FeedGenerator
 
 entry_template = '''╒═════╣▒ {{ entry.date }} ▒╟──────────┘
@@ -86,6 +87,13 @@ index_template = '''```
 URLBASE = 'gemini://going-flying.com/thoughts/'
 WEBBASE = 'https://www.going-flying.com/thoughts/'
 
+warnings.filterwarnings(
+	'ignore',
+	category=MarkupResemblesLocatorWarning,
+	module='bs4'
+)
+
+
 class DeHTMLizer(object):
 	'''Converter for the lightweight Thoughts HTML into gemini's
 	markup language.