Roundup Tracker - Issues

Message350

Author ber
Recipients
Date 2002-10-04.14:48:50
Message-id
In-reply-to
Logged In: YES 
user_id=113859

Found the problem. If the "import gadfly" already worked
than you can import gadfly from backends already.
Thus here is code that actually works:

try:
    import gadfly
    import gadfly.client
except ImportError, message:
    if str(message)=='No module named client':
        # make sure that gadfly cannot be imported from this
module
        del gadfly
    else:ยท
        if ( str(message) != 'No module named gadfly'): raise
History
Date User Action Args
2009-02-03 14:20:04adminlinkissue612873 messages
2009-02-03 14:20:04admincreate