suppressing import errors

2011-11-15 Thread Andreea Babiuc
Hi, Is there a way to suppress all the errors when importing a module in python? By that I mean.. If I have other imports in the module I'm trying to import that fail, I still want my module to be imported that way.. Many thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: suppressing import errors

2011-11-15 Thread Andreea Babiuc
th any except statement, specific exceptions may be caught > (rather than the blank, catch everything). > > Chris > > On Tue, Nov 15, 2011 at 9:11 AM, Andreea Babiuc > wrote: > > Hi, > > > > Is there a way to suppress all the errors when importing a module in > py

Re: suppressing import errors

2011-11-16 Thread Andreea Babiuc
Jean-Michel Pichavant wrote: > David Riley wrote: > >> On Nov 15, 2011, at 12:35 PM, Andreea Babiuc wrote: >> >> >> >>> On 15 November 2011 17:24, Chris Kaynor >>> wrote: >>> As with any Python code, you can wrap the import into a tr