IndentationError: unindent does not match any outer indentation level

Что не так с синтаксисом?

Error

{
    "resource": "/D:/programming/Python/kyb/mod2ch2/mod4/auth.py",
    "owner": "python",
    "code": "syntax-error",
    "severity": 8,
    "message": "unindent does not match any outer indentation level (<unknown>, line 12)",
    "source": "pylint",
    "startLineNumber": 12,
    "startColumn": 18,
    "endLineNumber": 12,
    "endColumn": 18
}

Terminal

    return email
               ^
IndentationError: unindent does not match any outer indentation level

auth.py

import time

def get_email_from_user(attempts=5, sleep_duration=10):
     email = input("Введите e-mail: ")
     i = 1
     while email.find("@") == -1:   
         print (" Попробуйте ещё раз")
         email = input("Попытка " + str(i) + ". Введите e-mail: ")
         if i % attempts == 0:
            print(" Подождите " + str(sleep_duration) + " секунд")
            time.sleep(sleep_duration)
    return email

def make_username(email):
    return email.split("@")[0].lower()

example.py

from auth import get_email_from_user, make_username

email = get_email_from_user()
username = make_username(email)
print("Вы вошли как " + username)

Ответы (0 шт):