diff --git a/main.py b/main.py index 792ee72..2af71d5 100644 --- a/main.py +++ b/main.py @@ -61,7 +61,9 @@ def read_config_file(filepath: str = "configuration.ini"): arguments.repository = parser["restic"]["repository"] arguments.passwordfile = parser["restic"]["passwordfile"] if "dryrun" in parser["restic"]: - arguments.dryrun = (parser["restic"]["dryrun"].lower() == "true" or parser["restic"]["dryrun"] > 0) + if parser["restic"]["dryrun"].lower() == "true" \ + or (parser["restic"]["dryrun"].isdigit() and parser["restic"]["dryrun"] > 0): + arguments.dryrun = () else: arguments.dryrun = False