Commit 1746a9df authored by Aurélien Campéas's avatar Aurélien Campéas
Browse files

tsio/delete: bail out rather than crashing on non-existent series

parent 978365d0688b
......@@ -323,7 +323,9 @@ class TimeSerie(SeriesServices):
def delete(self, cn, seriename):
assert not isinstance(cn, Engine), 'use a transaction object'
assert self.exists(cn, seriename)
if not self.exists(cn, seriename):
print('not deleting unknown series', seriename, self.namespace)
# changeset will keep ghost entries
# we cleanup changeset series, then registry
# then we drop the two remaining tables
......@@ -354,6 +356,7 @@ class TimeSerie(SeriesServices):
# -> this will transitively cleanup state changeset_series entries
print('deleted', seriename, self.namespace)
def strip(self, cn, seriename, csid):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment