Commit acd98d90 authored by Jérome Perrin's avatar Jérome Perrin

Explanation Cache: add debugging hints

parent 294f8bf1
...@@ -325,6 +325,8 @@ class ExplanationCache: ...@@ -325,6 +325,8 @@ class ExplanationCache:
try: try:
result = cache[reference_date_key] result = cache[reference_date_key]
if result is self: # use self as marker to detect infinite recursion if result is self: # use self as marker to detect infinite recursion
__traceback_info__ = (business_process.getPath(), trade_phase,
reference_date_method_id, delay_mode)
raise ValueError('No reference date is defined, probably due to missing Trade Model Path in Business Process') raise ValueError('No reference date is defined, probably due to missing Trade Model Path in Business Process')
return result return result
except KeyError: except KeyError:
......
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