Changes between Initial Version and Version 1 of Ticket #3326, comment 2


Ignore:
Timestamp:
11/30/2019 11:04:19 AM (5 years ago)
Author:
Patrik Lundquist

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3326, comment 2

    initial v1  
    33[WARNING ][deluge.core.torrentmanager    :1624] on_alert_performance: SomeTörrentNäme: performance warning: max outstanding piece requests reached, outstanding_request_limit_reached
    44}}}
    5 and I think the name in one of them triggered the !UnicodeDecodeError. I've upgraded earlier from Deluge 1.3 but didn't immediately run into this.
     5and I think the name in one of them triggered the !UnicodeDecodeError. I've upgraded earlier from Deluge 1.3 but didn't immediately run into this very problem but I've had other !UnicodeDecodeError problems when loading old torrents.
     6
     7Directly after upgrade I had to add
     8{{{#!python
     9diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py
     10index b94868776..87549215c 100644
     11--- a/deluge/core/torrentmanager.py
     12+++ b/deluge/core/torrentmanager.py
     13@@ -1389,9 +1390,12 @@ def on_alert_tracker_error(self, alert):
     14         error_message = decode_bytes(alert.error_message())
     15         if not error_message:
     16             error_message = decode_bytes(alert.error.message())
     17-        log.debug(
     18-            'Tracker Error Alert: %s [%s]', decode_bytes(alert.message()), error_message
     19-        )
     20+        try:
     21+            log.debug(
     22+                'Tracker Error Alert: %s [%s]', decode_bytes(alert.message()), error_message
     23+            )
     24+        except:
     25+            pass
     26         torrent.set_tracker_status('Error: ' + error_message)
     27 
     28     def on_alert_storage_moved(self, alert):
     29}}}
     30so variations on a basic problem perhaps.