diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2012-11-17 11:52:04 +0100 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2012-11-17 11:52:04 +0100 |
commit | 45a953af9c77ae16455bc6dc6c6c600835624d49 (patch) | |
tree | 98c753bc3b06417d23410fa22b95e6d321812f21 /kittystore/storm/__init__.py | |
parent | 4d8637021a884a2e7e6debf78cbf71cbca3771a3 (diff) | |
download | kittystore-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__.py | 2 |
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) |