AttributeError: TagReader instance has no attribute 'output_filename'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SoundConverter |
New
|
Undecided
|
Unassigned |
Bug Description
The follwing crash occurs, if searching for and installing a missing GStreamer plugin succeeds. Indeed, TagReader is a Decoder, not a Converter (which has attribute output_filename). Proposed fix is to use 'hasattr' for a safety-check and possibly apply a vfs_exists check prior to the unlink, too.
[...]
gstreamer.
Traceback (most recent call last):
File "/usr/lib/
vfs_
AttributeError: TagReader instance has no attribute 'output_filename'
Local variables in innermost frame:
self: <soundconverter
result: <enum GST_INSTALL_
if hasattr( self,'output_ filename' ): self.output_ filename) :
vfs_ unlink( self.output_ filename)
if vfs_exists(