1. Travis Shirk
  2. eyeD3
  3. Issues
Issue #97 resolved

Variable not defined

Anonymous created an issue

Hello,

There is a minor bug in utils/console.py at line 490 the variable 'log' is not defined, here is the traceback:

  File "/Library/Python/2.7/site-packages/eyeD3-0.7.9-py2.7.egg/eyed3/utils/console.py", line 490, in _encode
    log.exception()
NameError: global name 'log' is not defined

Comments (4)

  1. arkaycee

    I'm seeing this in 0.7.9 still.

    $ eyeD3 #594_\ My\ Summer\ Self.mp3 eyed3.mp3.headers:WARNING: Lame tag CRC check failed ...rsonal and Private/Dropbox/test/eyeD3/#594_ My Summer Self.mp3 [ 27.67 MB ]


    Time: 01:00:03 MPEG1, Layer III [ 64 kb/s @ 44100 Hz - Mono ]

    ID3 v2.2: title: #594: My Summer Self artist: This American Life album: This American Life album artist: Chicago Public Media recording date: 2016 eyed3.id3:WARNING: Non standard genre name: Podcast track: genre: Podcast (id None) Uncaught exception: global name 'log' is not defined

    eyed3:ERROR: global name 'log' is not defined Traceback (most recent call last): File "/Library/Python/2.7/site-packages/eyed3/main.py", line 281, in <module> retval = mainFunc(args, config) File "/Library/Python/2.7/site-packages/eyed3/main.py", line 49, in main fs_encoding=args.fs_encoding) File "/Library/Python/2.7/site-packages/eyed3/utils/init.py", line 75, in walk handler.handleFile(os.path.abspath(path)) File "/Library/Python/2.7/site-packages/eyed3/plugins/classic.py", line 465, in handleFile self.printTag(self.audio_file.tag) File "/Library/Python/2.7/site-packages/eyed3/plugins/classic.py", line 616, in printTag c.lang or "", c.text or "")) File "/Library/Python/2.7/site-packages/eyed3/utils/console.py", line 503, in printMsg s = _encode(s) File "/Library/Python/2.7/site-packages/eyed3/utils/console.py", line 490, in _encode log.exception() NameError: global name 'log' is not defined

  2. Log in to comment