Merge pull request #139 from chaitanyarahalkar/main

Fix empty message array error when running on Windows
pull/173/head^2
Ty Fiero 10 months ago committed by GitHub
commit 0fa5241b60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -45,15 +45,16 @@ last_messages = ""
def check_filtered_kernel():
messages = get_kernel_messages()
messages.replace(last_messages, "")
messages = messages.split("\n")
if messages:
messages.replace(last_messages, "")
messages = messages.split("\n")
filtered_messages = []
for message in messages:
if custom_filter(message):
filtered_messages.append(message)
filtered_messages = []
for message in messages:
if custom_filter(message):
filtered_messages.append(message)
return "\n".join(filtered_messages)
return "\n".join(filtered_messages)
async def put_kernel_messages_into_queue(queue):
while True:

Loading…
Cancel
Save