Commit 608b898e authored by David Trattnig's avatar David Trattnig
Browse files

Ability to print single entries.

parent fe192283
......@@ -36,7 +36,6 @@ class EngineUtil:
"""
A class for Engine utilities.
"""
@staticmethod
def get_channel_type(uri):
"""
......@@ -61,9 +60,12 @@ class EngineUtil:
Returns a list of entries as String for logging purposes.
"""
s = ""
for entry in entries:
s += str(entry)
if entry != entries[-1]: s += ", "
if isinstance(entries, list):
for entry in entries:
s += str(entry)
if entry != entries[-1]: s += ", "
else:
s = str(entries)
return s
......
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