mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
Fix python2.5 compatibility with except statements in remove_empty_folders
This commit is contained in:
parent
3126407d74
commit
0555fbeb9d
1 changed files with 2 additions and 2 deletions
|
@ -788,12 +788,12 @@ class TorrentManager(component.Component):
|
|||
try:
|
||||
os.removedirs(os.path.join(root, name))
|
||||
log.debug("Removed Empty Folder %s", os.path.join(root, name))
|
||||
except OSError as (errno, strerror):
|
||||
except OSError, (errno, strerror):
|
||||
if errno == 39:
|
||||
# Error raised if folder is not empty
|
||||
log.debug("%s", strerror)
|
||||
|
||||
except OSError as (errno, strerror):
|
||||
except OSError, (errno, strerror):
|
||||
log.debug("Cannot Remove Folder: %s (ErrNo %s)", strerror, errno)
|
||||
|
||||
def queue_top(self, torrent_id):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue