diff options
author | David Lehman <dlehman@redhat.com> | 2011-02-14 18:03:38 -0600 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2011-02-16 14:25:20 -0600 |
commit | bb29a66e61df51451adc0d78be4651e46a94644a (patch) | |
tree | c37868ccea5c855e8f30ea916e2db06ccb57911f /utils | |
parent | 4dc3f93730a8244b291097d3e9e67e4269b34a50 (diff) | |
download | anaconda-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.py | 2 |
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}) |