glasserc / rst2wp

Post to Wordpress using ReStructuredText
11 stars 10 forks source link

Fixed configuration initialization #10

Closed fenekku closed 11 years ago

fenekku commented 11 years ago

Hello, In Ubuntu 12.04 upon running the script for the first time, I got:

Traceback (most recent call last):
  File "./rst2wp", line 588, in <module>
    Rst2Wp().run()
  File "./rst2wp", line 405, in run
    config = self.config
  File "./rst2wp", line 116, in config
    return self._load_config()
  File "./rst2wp", line 149, in _load_config
    config.set('config', 'tab_width', 4)
  File "/usr/lib/python2.7/ConfigParser.py", line 743, in set
    raise TypeError("option values must be strings")
TypeError: option values must be strings

So I just fixed it by quoting the number options and it now works for me.

Thanks for the tool.

glasserc commented 11 years ago

Thanks -- ConfigParser is not my favorite library!