Skip to content

Commit 5acf226

Browse files
Merge pull request #4100 from springfall2008/fix/web_crash
Fix web crash
2 parents 92556aa + 6e5a448 commit 5acf226

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/predbat/predbat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import pytz
3636
import asyncio
3737

38-
THIS_VERSION = "v8.40.15"
38+
THIS_VERSION = "v8.40.16"
3939

4040
from download import predbat_update_move, predbat_update_download, check_install, DEFAULT_PREDBAT_REPOSITORY
4141
from const import MINUTE_WATT

apps/predbat/web.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3380,7 +3380,7 @@ async def html_apps(self, request):
33803380
for arg in args:
33813381
value = args[arg]
33823382
raw_value = self.resolve_value_raw(arg, value)
3383-
if ("_key" in arg) or ("_password" in arg) or ("_secret" in arg) or ("_pem" in arg):
3383+
if isinstance(arg, str) and (("_key" in arg) or ("_password" in arg) or ("_secret" in arg) or ("_pem" in arg)):
33843384
value = '<span title = "{}"> (hidden)</span>'.format(value)
33853385
arg_errors = self.base.arg_errors.get(arg, "")
33863386

0 commit comments

Comments
 (0)