summaryrefslogtreecommitdiffstats
path: root/deluge/ui/gtkui/torrentdetails.py
diff options
context:
space:
mode:
Diffstat (limited to 'deluge/ui/gtkui/torrentdetails.py')
-rw-r--r--deluge/ui/gtkui/torrentdetails.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/deluge/ui/gtkui/torrentdetails.py b/deluge/ui/gtkui/torrentdetails.py
index 035e3ac..308dbeb 100644
--- a/deluge/ui/gtkui/torrentdetails.py
+++ b/deluge/ui/gtkui/torrentdetails.py
@@ -17,9 +17,9 @@
#
# You should have received a copy of the GNU General Public License
# along with deluge. If not, write to:
-# The Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor
-# Boston, MA 02110-1301, USA.
+# The Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor
+# Boston, MA 02110-1301, USA.
#
# In addition, as a special exception, the copyright holders give
# permission to link the code of portions of this program with the OpenSSL
@@ -431,7 +431,7 @@ class TorrentDetails(component.Component):
state_file = open(os.path.join(config_location, filename), "rb")
state = cPickle.load(state_file)
state_file.close()
- except (EOFError, IOError), e:
+ except (EOFError, IOError, cPickle.UnpicklingError), e:
log.warning("Unable to load state file: %s", e)
return state