~harlowja/cloud-init/cloud-init-net-refactor

« back to all changes in this revision

Viewing changes to cloudinit/config/cc_final_message.py

Enable flake8 and fix a large amount of reported issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    try:
67
67
        contents = "%s - %s - v. %s\n" % (uptime, ts, cver)
68
68
        util.write_file(boot_fin_fn, contents)
69
 
    except:
 
69
    except Exception:
70
70
        util.logexc(log, "Failed to write boot finished file %s", boot_fin_fn)
71
71
 
72
72
    if cloud.datasource.is_disconnected: