diff options
author | Colin Watson <cjwatson@debian.org> | 2019-08-03 13:27:22 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2019-08-03 13:27:22 +0100 |
commit | c0e57836abe9ef24f07c258198283689b51e3613 (patch) | |
tree | 9e48e1f555652182762b53c17676f6a264f5078c /debian/openssh-server.apport | |
parent | 9e0323ffdc00a48e282b4bd7f0f974665ffe35e1 (diff) |
debian/*.apport: Fix flake8 errors
Diffstat (limited to 'debian/openssh-server.apport')
-rw-r--r-- | debian/openssh-server.apport | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/openssh-server.apport b/debian/openssh-server.apport index 58631be2d..aa853b51c 100644 --- a/debian/openssh-server.apport +++ b/debian/openssh-server.apport | |||
@@ -12,6 +12,7 @@ the full text of the license. | |||
12 | 12 | ||
13 | from apport.hookutils import root_command_output | 13 | from apport.hookutils import root_command_output |
14 | 14 | ||
15 | |||
15 | def add_info(report, ui): | 16 | def add_info(report, ui): |
16 | response = ui.yesno("The contents of your /etc/ssh/sshd_config file " | 17 | response = ui.yesno("The contents of your /etc/ssh/sshd_config file " |
17 | "may help developers diagnose your bug more " | 18 | "may help developers diagnose your bug more " |
@@ -19,8 +20,8 @@ def add_info(report, ui): | |||
19 | "information. Do you want to include it in your " | 20 | "information. Do you want to include it in your " |
20 | "bug report?") | 21 | "bug report?") |
21 | 22 | ||
22 | if response == None: # user cancelled | 23 | if response == None: # user cancelled |
23 | raise StopIteration | 24 | raise StopIteration |
24 | 25 | ||
25 | elif response == True: | 26 | elif response: |
26 | report['SSHDConfig'] = root_command_output(['/usr/sbin/sshd', '-T']) | 27 | report['SSHDConfig'] = root_command_output(['/usr/sbin/sshd', '-T']) |