~hudson-openstack/nova/trunk

« back to all changes in this revision

Viewing changes to nova/utils.py

  • Committer: Ewan Mellor
  • Date: 2010-08-09 11:10:27 UTC
  • mfrom: (212 trunk)
  • mto: (145.4.1 add-contains)
  • mto: This revision was merged to the branch mainline in revision 221.
  • Revision ID: ewan.mellor@citrix.com-20100809111027-xbdyu44l6nb68bvp
Merged with trunk again.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    try:
42
42
        __import__(mod_str)
43
43
        return getattr(sys.modules[mod_str], class_str)
44
 
    except (ImportError, AttributeError):
 
44
    except (ImportError, ValueError, AttributeError):
45
45
        raise exception.NotFound('Class %s cannot be found' % class_str)
46
46
 
47
47
def fetchfile(url, target):