~cloud-init-dev/cloud-init/trunk

« back to all changes in this revision

Viewing changes to cloudinit/sources/DataSourceGCE.py

Enable flake8 and fix a large amount of reported issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
from base64 import b64decode
19
19
 
20
20
from cloudinit import log as logging
21
 
from cloudinit import util
22
21
from cloudinit import sources
23
22
from cloudinit import url_helper
 
23
from cloudinit import util
24
24
 
25
25
LOG = logging.getLogger(__name__)
26
26
 
71
71
            index = public_key.index(':')
72
72
            if index > 0:
73
73
                return public_key[(index + 1):]
74
 
        except:
 
74
        except Exception:
75
75
            return public_key
76
76
 
77
77
    def get_data(self):