Skip to content

Commit

Permalink
style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mishaschwartz committed Nov 27, 2023
1 parent 2f59ad4 commit e4694fe
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
Revises: 5e5acc33adce
Create Date: 2023-11-10 15:58:23.068465
"""
import sqlalchemy
import sqlalchemy as sa
from alembic import op
from sqlalchemy import func
from sqlalchemy.orm.session import sessionmaker

# Revision identifiers, used by Alembic.
Expand Down Expand Up @@ -37,7 +35,7 @@ def upgrade():
[sa.text("lower(user_name)")],
unique=True,
)
except sqlalchemy.exc.IntegrityError as e:
except sa.exc.IntegrityError as e:
raise Exception("{}\nPlease manually update conflicting user_names and try again".format(e)) from e
session = Session(bind=op.get_bind())
for user in session.execute(sa.select(users)):
Expand Down

0 comments on commit e4694fe

Please sign in to comment.