From 58e0a18fe7150477b4e55a4352d3a65e5bf7e0ab Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sat, 2 Mar 2024 18:25:58 +0100 Subject: [PATCH] Fix CI errors --- CONTRIBUTING.rst | 2 +- boxes/generators/typetray.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index a948d408..07897bd5 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -125,7 +125,7 @@ also create a proper pull request instead: (This is case sensitive. Use CamelCase.) * The picture should be 1200 pixels wide and square or not too far from square (3:4 is fine). -* Minimize the file size by running it through `Tiny Png`_ +* Minimize the file size by running it through `Tiny Png `_ * Place the file in *static/samples/* * Check if the picture shows up at the bottom of the settings page of the generator when running *scripts/boxesserver* diff --git a/boxes/generators/typetray.py b/boxes/generators/typetray.py index d45b28d6..3dfb32a9 100644 --- a/boxes/generators/typetray.py +++ b/boxes/generators/typetray.py @@ -236,7 +236,7 @@ def render(self): if hasattr(self, "label_text"): self.textcontent = self.label_text.split("\r\n") else: - with open(self.label_file, "r") as f: + with open(self.label_file) as f: self.textcontent = f.readlines() self.textnumber = 0