--- a/RadonMetrics/CodeMetricsCalculator.py Tue Sep 15 19:22:38 2015 +0200 +++ b/RadonMetrics/CodeMetricsCalculator.py Wed Sep 16 18:51:27 2015 +0200 @@ -45,7 +45,8 @@ if type_ == "raw": return __rawCodeMetrics(file, text) - # TODO: Return error indication + res = {"error": "Unknown metrics '{0}'.".format(type_)} + return (res, ) def batchCodeMetrics(argumentsList, send, fx, cancelled):