--- a/pylib/mozreview/mozreview/autoland/resources.py
+++ b/pylib/mozreview/mozreview/autoland/resources.py
@@ -599,18 +599,17 @@ class ImportPullRequestTriggerResource(W
# if we've seen an import for this pullrequest before, see if we have
# an existing bugid we can reuse. Otherwise, Autoland will attempt to
# extract one from the pullrequest title and if that fails, file a new
# bug.
bugid = None
prs = ImportPullRequestRequest.objects.filter(
github_user=github_user,
github_repo=github_repo,
- github_pullrequest=pullrequest
- )
+ github_pullrequest=pullrequest)
prs = prs.order_by('-pk')[0:1]
if prs:
bugid = prs[0].bugid
pingback_url = import_pullrequest_update_resource.get_uri(request)
logging.info('Submitting a request to Autoland for pull request'
'%s/%s/%s for bug %s with pingback_url %s'