Commit 374fa857 authored by Tomáš Peterka's avatar Tomáš Peterka Committed by Rafael Monnerat

Don't throw away debugging messages when not throwing exceptions

parent 7c9fdce8
...@@ -558,7 +558,9 @@ def getRootPartition(reference): ...@@ -558,7 +558,9 @@ def getRootPartition(reference):
p = 'SELECT * FROM %s WHERE reference=?' p = 'SELECT * FROM %s WHERE reference=?'
partition = execute_db('partition', p, [reference], one=True) partition = execute_db('partition', p, [reference], one=True)
if partition is None: if partition is None:
return app.logger.error("Nonexisting partition \"{}\". Known are\n{!s}".format(
reference, execute_db("partition", "select reference, requested_by from %s")))
return None
parent_partition = execute_db('partition', p, [partition['requested_by']], one=True) parent_partition = execute_db('partition', p, [partition['requested_by']], one=True)
while (parent_partition is not None and while (parent_partition is not None and
......
Markdown is supported
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