Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Crash on saving results with the same name than a folder

#149
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'

Reported by Virgil Dupras · March 6th, 2011 @ 12:06 PM

State: fixed
Milestone: none
Assigned to: nobody

Activity

  1. Virgil Dupras
    Virgil Dupras

    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.

    March 7th, 2011 @ 11:11 AM

  2. Virgil Dupras
    Virgil Dupras

    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.

    April 13th, 2011 @ 04:28 PM

  3. Virgil Dupras
    Virgil Dupras
    • State changed from accepted to fixed

    (from [3dfd27cc3856]) [#149 state:fixed] Fixed crash on result saving. https://bitbucket.org/hsoft/dupeguru/changeset/3dfd27cc3856/

    April 13th, 2011 @ 04:59 PM

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.