peakwinter/python-nginx

argument of type 'int' is not iterable

quanghuy1288 opened this issue · 2 comments

version 1.5.4
When using function 'as_strings', error show as this:

lib/python2.7/site-packages/nginx.py", line 402, in as_strings if '"' not in self.value and (';' in self.value or '#' in self.value): TypeError: argument of type 'int' is not iterable

error if: nginxconf.Key('return', 403)
fix: nginxconf.Key('return', '403')

@quanghuy1288 This should be fixed in 1.5.5. Thanks for reporting!