~ubuntu-branches/ubuntu/trusty/python-softlayer/trusty

« back to all changes in this revision

Viewing changes to SoftLayer/managers/metadata.py

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2013-11-24 23:43:01 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20131124234301-9xqccxig339g04j5
Tags: 3.0.1-1
New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
            return make_rest_api_call('GET', url,
65
65
                                      http_headers={'User-Agent': USER_AGENT},
66
66
                                      timeout=self.timeout)
67
 
        except SoftLayerAPIError, e:
 
67
        except SoftLayerAPIError as e:
68
68
            if e.faultCode == 404:
69
69
                return None
70
70
            raise e