[views/workflow/tmppng] fix console crash on nth call to this one-shot view
The underlying design issue is not addressed here, only a cosmetic and
"we understand and document what's happening" note.
Related to #3400448.
try:rtype,=__args__exceptValueError:print'USAGE: cubicweb-ctl shell <instance> detect_cycle.py -- <relation type>'printgraph={}forfromeid,toeidinrql('Any X,Y WHERE X %s Y'%rtype):graph.setdefault(fromeid,[]).append(toeid)fromlogilab.common.graphimportget_cyclesforcycleinget_cycles(graph):print'cycle','->'.join(str(n)fornincycle)