diff --git a/pytm/pytm.py b/pytm/pytm.py index 6899234..4a15cb2 100644 --- a/pytm/pytm.py +++ b/pytm/pytm.py @@ -318,6 +318,8 @@ def _sort(flows, addOrder=False): def _sort_elem(elements): + if len(elements) == 0: + return elements orders = {} for e in elements: try: