Skip to content

Commit

Permalink
ImportChannels: Do not break the import when a file cannot be fatched
Browse files Browse the repository at this point in the history
Currently in the hanssat settings there is a file that is not available 'userbouquet.stream_solomonseilanden__sb_.radio' it should be but in a bouquet the string is different. Currently it breaks the total import. This change does avoid that so at least all the rest is read.
  • Loading branch information
Littlesat committed Mar 11, 2024
1 parent 1ca0655 commit 9abf89a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/python/Components/ImportChannels.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ def ImportGetFilelist(self, remote=False, *files):
content = map(lambda l: l.decode('utf-8', 'replace'), content)
except Exception as e:
print("[Import Channels] Exception: %s" % str(e))
self.ImportChannelsDone(False, _("ERROR downloading file %s/%s") % (e2path, file))
return
continue
else:
with open('%s/%s' % (e2path, file), 'r') as f:
content = f.readlines()
Expand Down

0 comments on commit 9abf89a

Please sign in to comment.