mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-04 07:01:47 -05:00
flake8: comply with new E722 rule
This commit is contained in:
@@ -160,7 +160,7 @@ def get_ansible_version():
|
||||
stdout=subprocess.PIPE)
|
||||
result = proc.communicate()[0]
|
||||
return result.split('\n')[0].replace('ansible', '').strip()
|
||||
except:
|
||||
except Exception:
|
||||
return 'unknown'
|
||||
|
||||
|
||||
@@ -174,7 +174,7 @@ def get_ssh_version():
|
||||
stderr=subprocess.PIPE)
|
||||
result = proc.communicate()[1]
|
||||
return result.split(" ")[0].split("_")[1]
|
||||
except:
|
||||
except Exception:
|
||||
return 'unknown'
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ def get_awx_version():
|
||||
try:
|
||||
import pkg_resources
|
||||
return pkg_resources.require('awx')[0].version
|
||||
except:
|
||||
except Exception:
|
||||
return __version__
|
||||
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ class BaseHandler(logging.Handler):
|
||||
return self._format_and_send_record(record)
|
||||
except (KeyboardInterrupt, SystemExit):
|
||||
raise
|
||||
except:
|
||||
except Exception:
|
||||
self.handleError(record)
|
||||
|
||||
def _get_host(self, scheme='', hostname_only=False):
|
||||
|
||||
Reference in New Issue
Block a user