glasslion / django-qiniu-storage

Django storage for 七牛云存储
MIT License
190 stars 70 forks source link

settings 取值异常 #12

Closed jackeyGao closed 8 years ago

jackeyGao commented 9 years ago

当QINIU_SECURE_URL 填写True 或者 False 会发生下面异常

AttributeError at /
'bool' object has no attribute 'strip'
Request Method: GET
Request URL:    http://whispering-plains-4390.herokuapp.com/
Django Version: 1.8
Exception Type: AttributeError
Exception Value:    
'bool' object has no attribute 'strip'
Exception Location: /app/.heroku/python/lib/python2.7/site-packages/qiniustorage/backends.py in get_qiniu_config, line 33
Python Executable:  /app/.heroku/python/bin/python
Python Version: 2.7.10
Python Path:    
['/app',
 '/app/.heroku/python/bin',
 '/app/.heroku/python/lib/python2.7/site-packages/setuptools-18.1-py2.7.egg',
 '/app/.heroku/python/lib/python2.7/site-packages/pip-7.1.0-py2.7.egg',
 '/app',
 '/app/.heroku/python/lib/python27.zip',
 '/app/.heroku/python/lib/python2.7',
 '/app/.heroku/python/lib/python2.7/plat-linux2',
 '/app/.heroku/python/lib/python2.7/lib-tk',
 '/app/.heroku/python/lib/python2.7/lib-old',
 '/app/.heroku/python/lib/python2.7/lib-dynload',
 '/app/.heroku/python/lib/python2.7/site-packages']
Server time:    Fri, 18 Sep 2015 08:00:14 +0000

qiniustorage.backends.get_qiniu_config 完善应当加层判断处理

glasslion commented 8 years ago

抱歉,前一阵比较忙,一致没空修bug. 这个 bug 已经在 commit 123d453 里修复了。