changeset 345:83122f15b993

raise NotImplementedError if memory backend is used
author Goffi <goffi@goffi.org>
date Sun, 20 Aug 2017 22:55:28 +0200
parents 8cf1be9572f8
children 3bbab2173ebc
files sat_pubsub/tap.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat_pubsub/tap.py	Sun Aug 20 22:54:58 2017 +0200
+++ b/sat_pubsub/tap.py	Sun Aug 20 22:55:28 2017 +0200
@@ -94,6 +94,8 @@
     def postOptions(self):
         if self['backend'] not in ['pgsql', 'memory']:
             raise usage.UsageError, "Unknown backend!"
+        if self['backend'] == 'memory':
+            raise NotImplementedError('memory backend is not available at the moment')
 
         self['jid'] = JID(self['jid'])