Commit e063e952 by Tu Nombre

Prueba

1 parent 1a574118
Showing 1 changed file with 5 additions and 1 deletions
...@@ -8,6 +8,10 @@ from matematika import * ...@@ -8,6 +8,10 @@ from matematika import *
from titulos import * from titulos import *
import pruebas import pruebas
class MyCustomException(Exception):
def __init__(self, message):
super().__init__(message)
ing = ingenieros.ingenieros() ing = ingenieros.ingenieros()
FozaDiaria = fosadiaria.FosaDiaria() FozaDiaria = fosadiaria.FosaDiaria()
...@@ -93,7 +97,7 @@ def login(): ...@@ -93,7 +97,7 @@ def login():
pasw = request.json['contrasena'] pasw = request.json['contrasena']
print(user,pasw,pruebas.login) print(user,pasw,pruebas.login)
if pruebas.login[user] != pasw: if pruebas.login[user] != pasw:
raise() raise MyCustomException("Ocurrió un error personalizado.")
print("Login user desarrollo") print("Login user desarrollo")
response = make_response(redirect(url_for('historico'))) response = make_response(redirect(url_for('historico')))
#response = make_response('', 200) #response = make_response('', 200)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!