From 89103f7c31f4faa94378a8a004dbaebad20ce95a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Thu, 3 May 2018 14:39:25 +0200 Subject: [PATCH] Rename exceptions.py to avoid shadowing built-in module --- solvable/src/webservice/{exceptions.py => errors.py} | 0 solvable/src/webservice/server.py | 2 +- solvable/src/webservice/user_ops.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename solvable/src/webservice/{exceptions.py => errors.py} (100%) diff --git a/solvable/src/webservice/exceptions.py b/solvable/src/webservice/errors.py similarity index 100% rename from solvable/src/webservice/exceptions.py rename to solvable/src/webservice/errors.py diff --git a/solvable/src/webservice/server.py b/solvable/src/webservice/server.py index 0e8fe90..5004385 100644 --- a/solvable/src/webservice/server.py +++ b/solvable/src/webservice/server.py @@ -4,7 +4,7 @@ from flask import Flask, render_template, request, session, url_for from model import init_db from user_ops import UserOps -from exceptions import InvalidCredentialsError, UserExistsError +from errors import InvalidCredentialsError, UserExistsError BASEURL = getenv('BASEURL', '') init_db() diff --git a/solvable/src/webservice/user_ops.py b/solvable/src/webservice/user_ops.py index 2472255..145c12a 100644 --- a/solvable/src/webservice/user_ops.py +++ b/solvable/src/webservice/user_ops.py @@ -1,6 +1,6 @@ from crypto import PasswordHasher from model import Session, User -from exceptions import InvalidCredentialsError, UserExistsError +from errors import InvalidCredentialsError, UserExistsError class UserOps: