Fix check on wrong variable

This commit is contained in:
Max Bachhuber 2020-10-20 14:53:21 +02:00 committed by GitHub
parent b864d67cda
commit b214a69136
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class Command(BaseCommand):
if settings_dir is not None:
settings_path = os.path.join(settings_dir, "saml_settings.json")
if not os.path.isdir(settings_path):
if not os.path.isdir(settings_dir):
print(f"The directory '{settings_dir}' does not exist. Aborting...")
return
else: