mirror of
https://github.com/pmret/papermario.git
synced 2024-09-18 23:42:35 +02:00
Fix the dang warning stuff...finally?
This commit is contained in:
parent
b716abeadb
commit
c55c2c0017
@ -19,6 +19,7 @@ def main():
|
|||||||
# Download the latest warnings.txt
|
# Download the latest warnings.txt
|
||||||
response = requests.get("https://papermar.io/reports/warnings.txt")
|
response = requests.get("https://papermar.io/reports/warnings.txt")
|
||||||
current_warnings = response.content.decode("utf-8").strip().split("\n")
|
current_warnings = response.content.decode("utf-8").strip().split("\n")
|
||||||
|
current_warnings = [line for line in current_warnings if line]
|
||||||
|
|
||||||
# Write the current warnings to a file
|
# Write the current warnings to a file
|
||||||
with open(script_dir / "warnings.txt", "w") as f:
|
with open(script_dir / "warnings.txt", "w") as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user