Changeset d40015c in rattail


Ignore:
Timestamp:
07/05/18 22:05:21 (2 years ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
8868f34
Parents:
56735e5
Message:

Defer some imports, to avoid errors when sqlalchemy not installed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/commands/core.py

    r56735e5 rd40015c  
    4040
    4141import six
    42 import sqlalchemy as sa
    43 from sqlalchemy import orm
    44 from sqlalchemy.orm.exc import NoResultFound, MultipleResultsFound
    4542
    4643from rattail import __version__
     
    10721069
    10731070    def run(self, args):
     1071        import sqlalchemy as sa
    10741072        import texttable
    10751073
     
    11211119
    11221120    def run(self, args):
     1121        from sqlalchemy.orm.exc import NoResultFound, MultipleResultsFound
    11231122        from rattail.upgrades import get_upgrade_handler
    11241123
Note: See TracChangeset for help on using the changeset viewer.