mirror of
https://github.com/kennethreitz-archive/django-mediasync.git
synced 2026-06-05 07:26:14 +00:00
If closure compiler returns an error, use the original filedata instead of an incorrect JS file.
This commit is contained in:
@@ -23,4 +23,7 @@ def compile(filedata, content_type, remote_path, is_active):
|
||||
data = response.read()
|
||||
conn.close
|
||||
|
||||
if data.startswith('Error'):
|
||||
data = filedata
|
||||
|
||||
return data
|
||||
Reference in New Issue
Block a user