summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-05-12 16:49:10 -0400
committerScott Moser <smoser@ubuntu.com>2016-05-12 16:49:10 -0400
commite5dff2d8683302845bde78553d09bd34dedfeebd (patch)
tree55afd5fd30c764357f22c4a30bbc2f905e8bd9f9 /setup.py
parent4ba4df2f00ab1763920280f76e2b4497898858af (diff)
downloadvyos-cloud-init-e5dff2d8683302845bde78553d09bd34dedfeebd.tar.gz
vyos-cloud-init-e5dff2d8683302845bde78553d09bd34dedfeebd.zip
fix setup.py for flake8
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/setup.py b/setup.py
index f86727b2..db46eae9 100755
--- a/setup.py
+++ b/setup.py
@@ -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,
- )
+)