Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
Merge 75ab764 into 9156a21
Browse files Browse the repository at this point in the history
  • Loading branch information
ncloudioj committed Jan 26, 2016
2 parents 9156a21 + 75ab764 commit 7cb7974
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/index_walker.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@
("https://www.mozilla.org/teach/smarton/tracking/?utm_source=directory-tiles&utm_medium=tiles&utm_content=SOTV1&utm_campaign=smarton", ("Mozilla", "Get Smart on Tracking")),
("https://donate.mozilla.org/?&amount=10&ref=EOYFR2015&utm_campaign=EOYFR2015&utm_source=directory-tiles&utm_medium=tiles&utm_content=dapper_v1", ("Mozilla", "Donate to Mozilla")),
("https://app.adjust.com/2uo1qc?campaign=tiles&adgroup=directory&creative=general&fallback=https%3A%2F%2Fitunes.apple.com%2Fapp%2Fapple-store%2Fid989804926%3Fpt%3D373246%26ct%3Dadjust_tracker%26mt%3D8I", ("Mozilla", "Firefox for iOS")),
("http://mzl.la/1Dls1DC", ("Mozilla", "Firefox for Android"))
("http://mzl.la/1Dls1DC", ("Mozilla", "Firefox for Android")),
("https://www.mozilla.org/teach/smarton/surveillance/?utm_source=directory-tiles&utm_medium=tiles&utm_content=SOSV1&utm_campaign=smarton", ("Mozilla", "Get Smart On Surveillance"))
]

_target_urls = {
Expand Down
5 changes: 4 additions & 1 deletion splice/queries/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ def switch_to_cdn_url(image_uri):
from splice.environment import Environment

env = Environment.instance()
basename = os.path.basename(image_uri)
try:
basename = os.path.basename(image_uri)
except:
basename = image_uri # if the image_uri is a hash string, use it directly
return os.path.join(env.config.CLOUDFRONT_BASE_URL, "images/%s" % basename)


Expand Down

0 comments on commit 7cb7974

Please sign in to comment.