From 118bafbd815922b759ed619412411878ef8b69f6 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Fri, 6 Jul 2012 09:06:01 -0500 Subject: [PATCH] Switching the syntax of this exception-raise It's nicer to raise exceptions like raise Exception("foo") than raise Exception, "foo" --- mediagoblin/tools/files.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mediagoblin/tools/files.py b/mediagoblin/tools/files.py index 315ff5e0..fd38f05e 100644 --- a/mediagoblin/tools/files.py +++ b/mediagoblin/tools/files.py @@ -40,5 +40,4 @@ def delete_media_files(media): no_such_files.append("/".join(attachment)) if no_such_files: - # This breaks pep8 as far as I know - raise OSError, ", ".join(no_such_files) + raise OSError(", ".join(no_such_files)) -- 2.25.1