/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-07-15 23:51:13 UTC
  • mfrom: (7371.1.2 fix-bedding)
  • Revision ID: breezy.the.bot@gmail.com-20190715235113-ngjg8303euve5h36
Don't write a log file if we can't create the cache directory.

Merged from https://code.launchpad.net/~jelmer/brz/fix-bedding/+merge/370160

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
    if proxy_info is None:
133
133
        import httplib2
134
134
        proxy_info = httplib2.proxy_info_from_environment('https')
135
 
    cache_directory = get_cache_directory()
 
135
    try:
 
136
        cache_directory = get_cache_directory()
 
137
    except EnvironmentError:
 
138
        cache_directory = None
136
139
    return Launchpad.login_with(
137
140
        'breezy', base_url, cache_directory, timeout=timeout,
138
141
        proxy_info=proxy_info, version=version)