bugchildsplay - Bugs: bug #42286, ...

 
 

bug #42286: fix-sqlalchemy-exceptions-import.diff patch

Submitter:  shirish <shirish>
Submitted:  Sun 04 May 2014 09:07:06 PM UTC
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  childsplay
Open/Closed:  Open
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Sun 04 May 2014 09:07:06 PM UTC, original submission:  

Sergio Talens-Oliag, the debian maintainer added this patch :-

    Description: Fix sqlalchemy.exceptions import.
     Use ‘exceptions’ as a normal attribute of the ‘sqlalchemy’ module, don't
     try to import it. (The ‘sqlalchemy.exceptions’ alias in sys.modules was
     removed in SQLAlchemy 0.7.)
    Author: Jakub Wilk <jwilk@debian.org>
    Bug-Debian: http://bugs.debian.org/638747
    Forwarded: no
    Last-Update: 2011-09-16

    --- a/SPDataManager.py
    +++ b/SPDataManager.py
    @@ -38,7 +38,6 @@

     try:
         import sqlalchemy as sqla
    -    import sqlalchemy.exceptions as sqlae
         import SQLTables
     except ImportError:
         module_logger.exception("No sqlalchemy package found")
    @@ -82,7 +81,7 @@
                     sqltb = SQLTables.SqlTables(self.metadata)
                         # returns lookup table to get table objects by name and creates tables
                     self.tables = sqltb._create_tables(self.metadata, self.engine)
    -            except (AttributeError, sqlae.SQLAlchemyError), info:
    +            except (AttributeError, sqla.exceptions.SQLAlchemyError), info:
                     self.logger.exception("Failed to start the DBase, %s" % info)
                     raise MyError, info
                 else:

shirish <shirish>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by childsplay (Updated the item)
  • -email is unavailable- added by shirish (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-05-11 childsplay StatusNone Fixed
        Assigned toNone childsplay

    Back to the top


    Powered by Savane 3.9