Fix flake8 issues

This commit is contained in:
2023-03-04 17:33:41 -05:00
parent 94f1396f2e
commit d0bb07df29
4 changed files with 2 additions and 9 deletions

View File

@ -4,7 +4,7 @@ import sys
from os import environ as env
if not "DJANGO_SETTINGS_MODULE" in env:
if "DJANGO_SETTINGS_MODULE" not in env:
from vrobbler import settings
env.setdefault("DJANGO_SETTINGS_MODULE", settings.__name__)
@ -19,9 +19,6 @@ logger = logging.getLogger("vrobbler")
def main():
# to get configured settings
from django.conf import settings
try:
from django.core.management import execute_from_command_line
except ImportError as exc:

View File

@ -4,7 +4,6 @@ from pathlib import Path
import dj_database_url
from django.utils.translation import gettext_lazy as _
from dotenv import load_dotenv
PROJECT_ROOT = Path(__file__).resolve().parent