diff --git a/lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py b/lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py
index a8d1c5e4b3f..ea077071571 100644
--- a/lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py
+++ b/lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py
@@ -160,10 +160,8 @@ class AdminToolshed(AdminGalaxy):
repository = get_installed_tool_shed_repository(trans.app, repository_id)
if repository is None:
return trans.show_error_message("Invalid repository specified.")
- tool_shed_url = common_util.get_tool_shed_url_from_tool_shed_registry(trans.app, str(repository.tool_shed))
description = kwd.get("description", repository.description)
status = "ok"
- _, tool_path, _ = get_tool_panel_config_tool_path_install_dir(trans.app, repository)
if repository.in_error_state:
message = "This repository is not installed correctly (see the Repository installation error below). Choose "
message += "Reset to install from the Repository Actions menu, correct problems if necessary and try "