Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError in logging when 'add'-ing a non-existent track #60

Closed
jodal opened this issue Jan 20, 2011 · 2 comments
Closed

TypeError in logging when 'add'-ing a non-existent track #60

jodal opened this issue Jan 20, 2011 · 2 comments

Comments

@jodal
Copy link
Member

jodal commented Jan 20, 2011

When adding a track that does not exist (the URI is one character short), we get a TypeError from Python's logging module. I'm using Python 2.6.6.

DEBUG    2011-01-20 16:28:57,439 [32448:MpdThread] mopidy.frontends.mpd.session
  Input from [::ffff:10.37.3.90]:57603: add "spotify:track:6vqcpVcbl3Zu6sHieLDNt"
Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/__init__.py", line 776, in emit
    msg = self.format(record)
  File "/usr/lib/python2.6/logging/__init__.py", line 654, in format
    return fmt.format(record)
  File "/usr/lib/python2.6/logging/__init__.py", line 436, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.6/logging/__init__.py", line 306, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
DEBUG    2011-01-20 16:28:57,443 [32448:MpdThread] mopidy.frontends.mpd.session
  Output to [::ffff:10.37.3.90]:57603: ACK [50@0] {add} directory or file not found

After the error, Mopidy continues to answer requests, but no more log output are written to the console.

@jodal
Copy link
Member Author

jodal commented Jan 21, 2011

Fixed in 2a1a3a8.

@jodal
Copy link
Member Author

jodal commented Jan 22, 2011

Released in v0.3.0. Closing.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant