diff --git a/deluge/core/autoadd.py b/deluge/core/autoadd.py
index 6d3d7a8..8d1219c 100644
a
|
b
|
def update(self):
|
74 | 74 | return |
75 | 75 | |
76 | 76 | for filename in os.listdir(self.config["autoadd_location"]): |
77 | | if filename.split(".")[-1] == "torrent": |
78 | | try: |
79 | | filepath = os.path.join(self.config["autoadd_location"], filename) |
80 | | except UnicodeDecodeError, e: |
81 | | log.error("Unable to auto add torrent due to inproper filename encoding: %s", e) |
82 | | continue |
| 77 | try: |
| 78 | filepath = os.path.join(self.config["autoadd_location"], filename) |
| 79 | except UnicodeDecodeError, e: |
| 80 | log.error("Unable to auto add torrent due to improper filename encoding: %s", e) |
| 81 | continue |
| 82 | if os.path.isfile(filepath) and filename.endswith(".torrent"): |
83 | 83 | try: |
84 | 84 | filedump = self.load_torrent(filepath) |
85 | 85 | except (RuntimeError, Exception), e: |