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. |
| 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 very problem but I've had other !UnicodeDecodeError problems when loading old torrents. |
| 6 | |
| 7 | Directly after upgrade I had to add |
| 8 | {{{#!python |
| 9 | diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py |
| 10 | index 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 | }}} |
| 30 | so variations on a basic problem perhaps. |