1013113 - fixing traceback on repo discovery page