Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceafill committed Jul 19, 2024
1 parent aacb4e5 commit 27247e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/MCPClient/lib/clientScripts/pid_declaration.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class DeclarePIDsExceptionNonCritical(Exception):

exit_code = 0


def exit_on_known_exception(func):
"""Decorator to allows us to raise an exception but still exit-zero when
the exception is cleaner to return than ad-hoc integer values.
Expand Down
5 changes: 4 additions & 1 deletion src/dashboard/src/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
import logging.config
import os
from io import StringIO
from typing import Any
from typing import Dict
from typing import List

import email_settings
from appconfig import Config
Expand Down Expand Up @@ -369,7 +372,7 @@ def _get_settings_from_file(path):
},
}

TEMPLATES = [
TEMPLATES: List[Dict[str, Any]] = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [os.path.join(BASE_PATH, "templates")],
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard/src/settings/components/ldap_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"AUTH_LDAP_TLS_KEYFILE"
)
if environ.get("AUTH_LDAP_TLS_REQUIRE_CERT", None):
require_cert = environ.get("AUTH_LDAP_TLS_REQUIRE_CERT").lower()
require_cert = environ.get("AUTH_LDAP_TLS_REQUIRE_CERT", "").lower()
if require_cert == "never":
AUTH_LDAP_GLOBAL_OPTIONS[ldap.OPT_X_TLS_REQUIRE_CERT] = ldap.OPT_X_TLS_NEVER
elif require_cert == "allow":
Expand Down

0 comments on commit 27247e1

Please sign in to comment.