Skip to content

Commit 58801ac

Browse files
committed
v2.2.3 - Bump hypercorn[trio] and minor type fix
1 parent b26fa03 commit 58801ac

7 files changed

Lines changed: 10 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ classifiers = [
3232
]
3333
keywords = ["scanner", "sane", "server", "frontend"]
3434
dependencies = [
35-
"hypercorn[trio]~=0.15.0",
35+
"hypercorn[trio]~=0.16.0",
3636
"Pillow~=10.2.0",
3737
"python-sane~=2.9.1",
3838
"quart~=0.19.4",

src/sanescansrv/server.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
__title__ = "Sane Scanner Web Server"
2222
__author__ = "CoolCat467"
23-
__version__ = "2.2.2"
23+
__version__ = "2.2.3"
2424
__license__ = "GPLv3"
2525

2626

@@ -704,7 +704,9 @@ def run() -> None:
704704
config.write(config_file)
705705

706706
print(f"Default Printer: {target}\nPort: {port}\nHostname: {hostname}")
707-
print(f"PIL Image Version: {Image.__version__}\n")
707+
pil_version = getattr(Image, "__version__", None)
708+
assert pil_version is not None, "PIL should have a version!"
709+
print(f"PIL Image Version: {pil_version}\n")
708710

709711
if target == "None":
710712
print("No default device in config file.")

src/sanescansrv/templates/error_page.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<footer>
2525
<i>If you're reading this, the web server was installed correctly.™</i>
2626
<hr>
27-
<p>Sane Scanner Web Server v2.2.2 © CoolCat467</p>
27+
<p>Sane Scanner Web Server v2.2.3 © CoolCat467</p>
2828
</footer>
2929
</body>
3030
</html>

src/sanescansrv/templates/root_get.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<footer>
5656
<i>If you're reading this, the web server was installed correctly.™</i>
5757
<hr>
58-
<p>Sane Scanner Web Server v2.2.2 © CoolCat467</p>
58+
<p>Sane Scanner Web Server v2.2.3 © CoolCat467</p>
5959
</footer>
6060
</body>
6161
</html>

src/sanescansrv/templates/scan-status_get.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<footer>
2222
<i>If you're reading this, the web server was installed correctly.™</i>
2323
<hr>
24-
<p>Sane Scanner Web Server v2.2.2 © CoolCat467</p>
24+
<p>Sane Scanner Web Server v2.2.3 © CoolCat467</p>
2525
</footer>
2626
</body>
2727
</html>

src/sanescansrv/templates/scanners_get.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<footer>
3434
<i>If you're reading this, the web server was installed correctly.™</i>
3535
<hr>
36-
<p>Sane Scanner Web Server v2.2.2 © CoolCat467</p>
36+
<p>Sane Scanner Web Server v2.2.3 © CoolCat467</p>
3737
</footer>
3838
</body>
3939
</html>

src/sanescansrv/templates/settings_get.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<footer>
2727
<i>If you're reading this, the web server was installed correctly.™</i>
2828
<hr>
29-
<p>Sane Scanner Web Server v2.2.2 © CoolCat467</p>
29+
<p>Sane Scanner Web Server v2.2.3 © CoolCat467</p>
3030
</footer>
3131
</body>
3232
</html>

0 commit comments

Comments
 (0)