Switching the syntax of this exception-raise

It's nicer to raise exceptions like
  raise Exception("foo")
than
  raise Exception, "foo"
This commit is contained in:
Christopher Allan Webber 2012-07-06 09:06:01 -05:00
parent 1ec85bb3de
commit 118bafbd81

View File

@ -40,5 +40,4 @@ def delete_media_files(media):
no_such_files.append("/".join(attachment)) no_such_files.append("/".join(attachment))
if no_such_files: if no_such_files:
# This breaks pep8 as far as I know raise OSError(", ".join(no_such_files))
raise OSError, ", ".join(no_such_files)