bug: Settings.html template crashes upon pressing 'update app' in python 3
Works for any dataset - Full Traceback
Traceback (most recent call last):
File "/home/karmanya/anaconda3/envs/gramexlocal/lib/python3.6/site-packages/tornado/web.py", line 1543, in _execute
result = yield result
File "/home/karmanya/anaconda3/envs/gramexlocal/lib/python3.6/site-packages/tornado/gen.py", line 1099, in run
value = future.result()
File "/home/karmanya/anaconda3/envs/gramexlocal/lib/python3.6/site-packages/tornado/gen.py", line 1107, in run
yielded = self.gen.throw(*exc_info)
File "/home/karmanya/repos/gramex/gramex/handlers/filehandler.py", line 191, in _get
yield self._get_path(self.root / path if self.root.is_dir() else self.root)
File "/home/karmanya/anaconda3/envs/gramexlocal/lib/python3.6/site-packages/tornado/gen.py", line 1099, in run
value = future.result()
File "/home/karmanya/anaconda3/envs/gramexlocal/lib/python3.6/site-packages/tornado/gen.py", line 1107, in run
yielded = self.gen.throw(*exc_info)
File "/home/karmanya/repos/gramex/gramex/handlers/filehandler.py", line 295, in _get_path
item = yield item
File "/home/karmanya/anaconda3/envs/gramexlocal/lib/python3.6/site-packages/tornado/gen.py", line 1099, in run
value = future.result()
File "/home/karmanya/anaconda3/envs/gramexlocal/lib/python3.6/site-packages/tornado/gen.py", line 296, in wrapper
result = func(*args, **kwargs)
File "/home/karmanya/anaconda3/envs/gramexlocal/lib/python3.6/types.py", line 248, in wrapped
coro = func(*args, **kwargs)
File "/home/karmanya/repos/gramex/gramex/transforms/template.py", line 15, in template
raise tornado.gen.Return(tmpl.generate(handler=handler, **kwargs).decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode'