Catch all exceptions during interactive_add_torrent.

This commit is contained in:
Andrew Resch 2008-01-18 04:46:39 +00:00
parent 4a7e0a578b
commit d2f6a99778

View File

@ -1433,6 +1433,8 @@ disk space to complete your download.") + "\n" + _("Space Needed:") + " " + \
nice_need + "\n" + _("Available Space:") + " " + nice_free)
except core.InvalidEncodingError, e:
print "invalid encoding\n"
except Exception, e:
print "Unable to add torrent:", e
else:
self.torrent_model_append(unique_id)