Changaco / xmpputils

Two XMPP utils: echobot and sendxmpp
http://changaco.net/gitweb/?p=xmpputils.git
4 stars 6 forks source link

custom config file / AttributeError: '_io.TextIOWrapper' object has no attribute 'strip' #1

Closed cweiske closed 11 years ago

cweiske commented 11 years ago

When running ./sendxmpp.py -c ~/.config/sendxmpp.py.cfg -s foo user@example.org I get:

Traceback (most recent call last):
  File "./sendxmpp.py", line 78, in <module>
    conf.read_file(global_args.config)
  File "/usr/lib/python3.3/configparser.py", line 708, in read_file
    self._read(f, source)
  File "/usr/lib/python3.3/configparser.py", line 1026, in _read
    if line.strip().startswith(prefix):
AttributeError: '_io.TextIOWrapper' object has no attribute 'strip'

When moving that file to ~/.sendxmpp, it works.