summaryrefslogtreecommitdiffstats
path: root/kittystore/storm/__init__.py
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2012-11-17 11:52:04 +0100
committerAurélien Bompard <aurelien@bompard.org>2012-11-17 11:52:04 +0100
commit45a953af9c77ae16455bc6dc6c6c600835624d49 (patch)
tree98c753bc3b06417d23410fa22b95e6d321812f21 /kittystore/storm/__init__.py
parent4d8637021a884a2e7e6debf78cbf71cbca3771a3 (diff)
downloadkittystore-45a953af9c77ae16455bc6dc6c6c600835624d49.tar.gz
kittystore-45a953af9c77ae16455bc6dc6c6c600835624d49.tar.xz
kittystore-45a953af9c77ae16455bc6dc6c6c600835624d49.zip
Don't let the message scrubber add attachments
Or they will be added before the email is in the database, violating foreign-key constraints.
Diffstat (limited to 'kittystore/storm/__init__.py')
-rw-r--r--kittystore/storm/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kittystore/storm/__init__.py b/kittystore/storm/__init__.py
index da1a56d..b7c7a92 100644
--- a/kittystore/storm/__init__.py
+++ b/kittystore/storm/__init__.py
@@ -39,8 +39,8 @@ def create_store(url, debug):
if debug:
storm.tracer.debug(True, stream=sys.stdout)
database = create_database(url)
- store = Store(database)
dbtype = url.partition(":")[0]
+ store = Store(database)
dbschema = Schema(schema.CREATES[dbtype], [], [], schema)
dbschema.upgrade(store)
return StormStore(store, debug)