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

« back to all changes in this revision

Viewing changes to cloudinit/config/cc_set_passwords.py

Enable flake8 and fix a large amount of reported issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
            cmd = filter(None, cmd)  # Remove empty arguments
156
156
            util.subp(cmd)
157
157
            log.debug("Restarted the ssh daemon")
158
 
        except:
 
158
        except Exception:
159
159
            util.logexc(log, "Restarting of the ssh daemon failed")
160
160
 
161
161
    if len(errors):