diff --git a/CHANGELOG.md b/CHANGELOG.md
index f55a244..cc26f21 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,9 @@ Tyto - Littérateur
- Changelog: https://git.a-lec.org/echolib/tyto-litterateur/-/blob/master/CHANGELOG.md
- License: https://git.a-lec.org/echolib/tyto-litterateur/-/blob/master/LICENSE
+## [0.10.1]
+- Fix with try in check for static page
+
## [0.10.0]
- Add full static page option (--static) only with wip
- Add
markers: `<<`, `>>`
diff --git a/debian/control b/debian/control
index 59ae9da..066e25c 100644
--- a/debian/control
+++ b/debian/control
@@ -1,5 +1,5 @@
Package: tyto
-Version: 0.10.0
+Version: 0.10.1
Section: custom
Priority: optional
Architecture: all
diff --git a/src/usr/bin/tyto b/src/usr/bin/tyto
index c6c2314..042c35d 100755
--- a/src/usr/bin/tyto
+++ b/src/usr/bin/tyto
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-# Version: 0.10.0
+# Version: 0.10.1
# Tyto - Littérateur
#
# Copyright (C) 2023 Cyrille Louarn
diff --git a/src/var/lib/tyto/program/check.py b/src/var/lib/tyto/program/check.py
index c8ff824..5ecd487 100644
--- a/src/var/lib/tyto/program/check.py
+++ b/src/var/lib/tyto/program/check.py
@@ -873,8 +873,8 @@ def check_content(post_bottom):
tpl2 = post_bottom.count(tag[1])
if tpl1 != tpl2:
- logs.out("22", '"%s" + "%s" > %s'%(
- tag[0], tag[1], db.uri_file
+ logs.out("22", '%s*%s + %s*%s > %s'%(
+ tpl1, tag[0], tpl2, tag[1], db.uri_file
), False)
@@ -892,12 +892,15 @@ def check_static_posts():
]
for srv_post, static in srv_posts:
- post_datas = open(srv_post, "r").read()
- if not re.findall(
- tyto.tags_html_mods[dom.wip_metas_f],
- post_datas
- ):
- globals()[static] = "True"
+ try:
+ post_datas = open(srv_post, "r").read()
+ if not re.findall(
+ tyto.tags_html_mods[dom.wip_metas_f],
+ post_datas
+ ):
+ globals()[static] = "True"
+ except:
+ continue
#===============================#