summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2011-02-14 18:03:38 -0600
committerDavid Lehman <dlehman@redhat.com>2011-02-16 14:25:20 -0600
commitbb29a66e61df51451adc0d78be4651e46a94644a (patch)
treec37868ccea5c855e8f30ea916e2db06ccb57911f /utils
parent4dc3f93730a8244b291097d3e9e67e4269b34a50 (diff)
downloadanaconda-bb29a66e61df51451adc0d78be4651e46a94644a.tar.gz
anaconda-bb29a66e61df51451adc0d78be4651e46a94644a.tar.xz
anaconda-bb29a66e61df51451adc0d78be4651e46a94644a.zip
Clean up a bunch of exception handling code.
Mostly replaces 'except Foo, e' with 'except Foo as e', but there are a few areas where some logic gets reworked.
Diffstat (limited to 'utils')
-rw-r--r--utils/log_picker/sending/ftpsender.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/log_picker/sending/ftpsender.py b/utils/log_picker/sending/ftpsender.py
index 92f7184cb..9ecf0955e 100644
--- a/utils/log_picker/sending/ftpsender.py
+++ b/utils/log_picker/sending/ftpsender.py
@@ -42,6 +42,6 @@ class FtpSender(SenderBaseClass):
ftp.storbinary('STOR %s' % os.path.basename(filename), \
file(filename))
ftp.quit()
- except ftplib.all_errors, e:
+ except ftplib.all_errors as e:
raise SenderError("FTP upload failed: %(error)s" % {'error':e})