aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/sql/fake.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/db/sql/fake.py')
-rw-r--r--mediagoblin/db/sql/fake.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/mediagoblin/db/sql/fake.py b/mediagoblin/db/sql/fake.py
index 0fd0cc41..bb91dbcb 100644
--- a/mediagoblin/db/sql/fake.py
+++ b/mediagoblin/db/sql/fake.py
@@ -24,7 +24,6 @@ Currently:
- ObjectId "class": It's a function mostly doing
int(init_arg) to convert string primary keys into
integer primary keys.
-- InvalidId exception
- DESCENDING "constant"
"""
@@ -32,14 +31,7 @@ Currently:
DESCENDING = object() # a unique object for this "constant"
-class InvalidId(Exception):
- pass
-
-
def ObjectId(value=None):
if value is None:
return None
- try:
- return int(value)
- except ValueError:
- raise InvalidId("%r is an invalid id" % value)
+ return int(value)