aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-07-13 20:58:13 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-07-13 20:58:13 -0500
commit511b10efda06f4a4933c936594d5d270bdd6824c (patch)
treee268c5dd53eedd2d67befa587ea85be21ff39c7f
parentc2ddd85e4ac6c50289711fb5673dd716329a569b (diff)
downloadmediagoblin-511b10efda06f4a4933c936594d5d270bdd6824c.tar.lz
mediagoblin-511b10efda06f4a4933c936594d5d270bdd6824c.tar.xz
mediagoblin-511b10efda06f4a4933c936594d5d270bdd6824c.zip
We should *raise* MissingCurrentMigration :)
Thanks for the catch, Elrond.
-rw-r--r--mediagoblin/db/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/db/util.py b/mediagoblin/db/util.py
index 5a1b317d..3e52d8ce 100644
--- a/mediagoblin/db/util.py
+++ b/mediagoblin/db/util.py
@@ -173,7 +173,7 @@ class MigrationManager(object):
with the 'current_migration', throw an error.
"""
if self.database_current_migration() is None:
- MissingCurrentMigration(
+ raise MissingCurrentMigration(
"Tried to call function which requires "
"'current_migration' set in database")