diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-05-12 16:49:10 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-05-12 16:49:10 -0400 |
commit | e5dff2d8683302845bde78553d09bd34dedfeebd (patch) | |
tree | 55afd5fd30c764357f22c4a30bbc2f905e8bd9f9 /setup.py | |
parent | 4ba4df2f00ab1763920280f76e2b4497898858af (diff) | |
download | vyos-cloud-init-e5dff2d8683302845bde78553d09bd34dedfeebd.tar.gz vyos-cloud-init-e5dff2d8683302845bde78553d09bd34dedfeebd.zip |
fix setup.py for flake8
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -57,15 +57,15 @@ def tiny_p(cmd, capture=True): def pkg_config_read(library, var): fallbacks = { - 'systemd': { - 'systemdsystemunitdir': '/lib/systemd/system', - 'systemdsystemgeneratordir': '/lib/systemd/system-generators', - } + 'systemd': { + 'systemdsystemunitdir': '/lib/systemd/system', + 'systemdsystemgeneratordir': '/lib/systemd/system-generators', + } } cmd = ['pkg-config', '--variable=%s' % var, library] try: (path, err) = tiny_p(cmd) - except: + except Exception: return fallbacks[library][var] return str(path).strip() @@ -212,4 +212,4 @@ setuptools.setup( data_files=data_files, install_requires=requirements, cmdclass=cmdclass, - ) +) |