Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Dec 30, 2019
1 parent 7c41d5f commit 3f9610f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qgispluginci/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ def __get_resource(self) -> dict:
raise TransifexNoResource("project '{}' has no resource on Transifex".format(self.parameters.project_slug))
if len(resources) > 1:
for resource in resources:
if resource.name == self.parameters.transifex_resource:
if resource['name'] == self.parameters.transifex_resource:
return resource
raise TransifexManyResources("project '{p}' has several resources on Transifex "
"and none is named as the project slug."
"Specify one in the parameters with transifex_resource"
.format(p=self.parameters.project_slug))
return resources[0]
return resources[0]

0 comments on commit 3f9610f

Please sign in to comment.