raise error

This commit is contained in:
Marcos Pinto 2007-11-06 20:46:11 +00:00
parent 0998506f9f
commit 09798cd394

View File

@ -533,6 +533,8 @@ class Manager:
# We have enough free space, so lets resume this torrent # We have enough free space, so lets resume this torrent
self.resume(unique_ID) self.resume(unique_ID)
else: else:
import ui
ui.GTKError(_("You're out of HD space! We had to pause at least one torrent"))
print "Not enough free space to resume this torrent!" print "Not enough free space to resume this torrent!"
else: #We're using compact allocation so lets just resume else: #We're using compact allocation so lets just resume
self.resume(unique_ID) self.resume(unique_ID)
@ -835,6 +837,7 @@ class Manager:
except: except:
print "Error probably bad torrent" print "Error probably bad torrent"
del self.state.torrents[torrent] del self.state.torrents[torrent]
raise e
ret = unique_ID ret = unique_ID
self.unique_IDs[unique_ID] = torrent self.unique_IDs[unique_ID] = torrent