have core catch more than just InvalidEncoding errors

This commit is contained in:
Zach Tibbitts 2007-03-27 23:02:53 +00:00
parent 54e68ef890
commit 1c56e863a8
1 changed files with 2 additions and 1 deletions

View File

@ -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