Crash on saving results with the same name than a folder
Reported by Virgil Dupras | March 6th, 2011 @ 12:06 PM
Application Name: dupeGuru
Version: 3.0.1
Traceback (most recent call last):
File "/home/hsoft/src/dupeguru/qt/base/result_window.py", line 338, in saveResultsTriggered
self.app.save_as(destination)
File "/home/hsoft/src/dupeguru/core/app.py", line 359, in save_as
self.results.save_to_xml(filename)
File "/home/hsoft/src/dupeguru/core/results.py", line 307, in save_to_xml
with FileOrPath(outfile, 'wb') as fp:
File "/home/hsoft/src/dupeguru/hscommon/util.py", line 302, in __enter__
self.fp, self.mustclose = open_if_filename(self.file_or_path, self.mode)
File "/home/hsoft/src/dupeguru/hscommon/util.py", line 290, in open_if_filename
return (open(infile, mode), True)
IOError: [Errno 21] Is a directory: '/home/hsoft/Desktop/foo'
Comments and changes to this ticket
-
Virgil Dupras March 7th, 2011 @ 11:11 AM
The resolution of this bug requires significant changes to the code for something that doesn't have a lot of chances to happen. Some day, maybe, I'll fix it.
-
Virgil Dupras April 13th, 2011 @ 04:28 PM
Or what about simply using name conflict resolution for this case? Very rare case, bit of a hacky fix, but at least it doesn't crash.
-
Virgil Dupras April 13th, 2011 @ 04:59 PM
- State changed from accepted to fixed
(from [3dfd27cc3856]) [#149 state:fixed] Fixed crash on result saving. https://bitbucket.org/hsoft/dupeguru/changeset/3dfd27cc3856/
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
People watching this ticket
Tags
Referenced by
- 149 Crash on saving results with the same name than a folder (from [3dfd27cc3856]) [#149 state:fixed] Fixed crash on r...