Skip to content

Commit

Permalink
Merge pull request #640 from Sophist-UK/patch-3
Browse files Browse the repository at this point in the history
PICARD-995: Avoid error on OSX invalid file path
  • Loading branch information
samj1912 committed Mar 4, 2017
2 parents 2727fb4 + d28ce85 commit 7256c20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions picard/ui/itemviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ def drop_urls(urls, target):
log.debug('OSX NSURL path detected. Dropped File is: %r', filename)
else:
log.error("Unable to get appropriate file path for %r", url.toString(QtCore.QUrl.RemoveUserInfo))
continue
else:
# Dropping a file from iTunes gives a filename with a NULL terminator
filename = os.path.normpath(os.path.realpath(unicode(url.toLocalFile()).rstrip("\0")))
Expand Down

0 comments on commit 7256c20

Please sign in to comment.