mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-23 09:50:20 +00:00
have core catch more than just InvalidEncoding errors
This commit is contained in:
parent
54e68ef890
commit
1c56e863a8
@ -649,7 +649,8 @@ class Manager:
|
||||
unique_ID = deluge_core.add_torrent(torrent.filename,
|
||||
torrent.save_dir,
|
||||
torrent.compact)
|
||||
except InvalidEncodingError, e:
|
||||
except DelugeError, e:
|
||||
print "Error:", e
|
||||
self.state.torrents.remove(torrent)
|
||||
raise e
|
||||
# print "Got unique ID:", unique_ID
|
||||
|
Loading…
x
Reference in New Issue
Block a user