Commit b3920ed9 authored by carlosribas's avatar carlosribas
Browse files

Bug fix

parent b3aafd48
......@@ -561,7 +561,7 @@ class Rna(CachingMixin, models.Model):
s3_obj = s3.Object(settings.S3_SERVER['BUCKET'], s3_file)
try:
svg = zlib.decompress(s3_obj.get()['Body'].read(), zlib.MAX_WBITS | 32)
svg = svg.replace("rgb(255, 0, 0)", "rgb(255,0,255)")
svg = svg.replace(b"rgb(255, 0, 0)", b"rgb(255,0,255)")
except s3.meta.client.exceptions.NoSuchKey:
svg = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment