fix(tisbackup): fix iniparse wrong check
Some checks failed
lint / docker (push) Has been cancelled

This commit is contained in:
k3nny 2025-04-14 23:37:16 +02:00
parent ddb5f3716d
commit 586991bcf1
2 changed files with 8 additions and 2 deletions

5
backup.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
set -x
echo "Starting cleanup job for TIS Backup"
/usr/local/bin/python3.13 /opt/tisbackup/tisbackup.py backup
/usr/local/bin/python3.13 /opt/tisbackup/tisbackup.py cleanup

View File

@ -33,9 +33,10 @@ from . import ini
class RawConfigParser:
def __init__(self, defaults: Optional[Dict[str, str]] = None, dict_type: Union[Type[Dict], str] = dict):
if not isinstance(dict_type, dict):
def __init__(self, defaults=None, dict_type=dict):
if dict_type is not dict:
raise ValueError("Custom dict types not supported")
self.data = ini.INIConfig(defaults=defaults, optionxformsource=self)
def optionxform(self, optionstr: str) -> str: