/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/plugins/launchpad/lp_api_lite.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
import urllib
40
40
import urllib2
41
41
 
42
 
from bzrlib import (
 
42
from ... import (
43
43
    revision,
44
44
    trace,
45
45
    )
125
125
            response = urllib2.urlopen(req)
126
126
            json_info = response.read()
127
127
        # TODO: We haven't tested the HTTPError
128
 
        except (urllib2.URLError, urllib2.HTTPError), e:
 
128
        except (urllib2.URLError, urllib2.HTTPError) as e:
129
129
            trace.mutter('failed to place query to %r' % (query_URL,))
130
130
            trace.log_exception_quietly()
131
131
            return None