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:
@@ -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)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user