Mercurial > libervia-pubsub
comparison 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 |
comparison
equal
deleted
inserted
replaced
344:8cf1be9572f8 | 345:83122f15b993 |
---|---|
92 ] | 92 ] |
93 | 93 |
94 def postOptions(self): | 94 def postOptions(self): |
95 if self['backend'] not in ['pgsql', 'memory']: | 95 if self['backend'] not in ['pgsql', 'memory']: |
96 raise usage.UsageError, "Unknown backend!" | 96 raise usage.UsageError, "Unknown backend!" |
97 if self['backend'] == 'memory': | |
98 raise NotImplementedError('memory backend is not available at the moment') | |
97 | 99 |
98 self['jid'] = JID(self['jid']) | 100 self['jid'] = JID(self['jid']) |
99 | 101 |
100 | 102 |
101 | 103 |