Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/extensions/utils.py

Issue 29366952: Noissue - Fix "cannot concatenate 'str' and 'Configuration' objects" error when extension download … (Closed) Base URL: https://hg.adblockplus.org/sitescripts
Patch Set: Created Dec. 6, 2016, 12:20 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/extensions/utils.py
===================================================================
--- a/sitescripts/extensions/utils.py
+++ b/sitescripts/extensions/utils.py
@@ -313,17 +313,18 @@ def getDownloadLinks(result):
"""
gets the download links for all extensions and puts them into the config
object
"""
for repo in Configuration.getRepositoryConfigurations():
try:
(downloadURL, version) = _getDownloadLink(repo)
if downloadURL is None:
- raise Exception('No download link found for repo: ' + repo)
+ raise Exception('No download link found for repo: ' +
+ repo.repositoryName)
except:
traceback.print_exc()
continue
if not result.has_section(repo.repositoryName):
result.add_section(repo.repositoryName)
result.set(repo.repositoryName, 'downloadURL', downloadURL)
result.set(repo.repositoryName, 'version', version)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld