mirror of
https://github.com/logos-storage/deluge.git
synced 2026-01-14 11:03:09 +00:00
Fix python2.5 compatibility with except statements in remove_empty_folders
This commit is contained in:
parent
3126407d74
commit
0555fbeb9d
@ -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…
x
Reference in New Issue
Block a user