diff sat_pubsub/tap.py @ 345:83122f15b993

raise NotImplementedError if memory backend is used
author Goffi <goffi@goffi.org>
date Sun, 20 Aug 2017 22:55:28 +0200
parents ae37289007c3
children efbdca10f0fb
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'])