Skip to content

Commit

Permalink
[bouquetswriter]
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Sep 22, 2023
1 parent 230fce6 commit ce0e16f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AutoBouquetsMaker/src/scanner/bouquetswriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def makeCustomSeparator(self, path, filename, max_count):

try:
bouquet_in = open(path + "/" + filename, "r")
except:
except Exception as e:
print("[ABM-BouquetsWriter] ", e, file=log)
return

Expand All @@ -335,7 +335,7 @@ def makeCustomSeparator(self, path, filename, max_count):
seperator_name = "/%s%s.separator.tv" % (self.ABM_BOUQUET_PREFIX, filename[:len(filename) - 3])
try:
bouquet_out = open(path + seperator_name, "w")
except:
except Exception as e:
print("[ABM-BouquetsWriter] ", e, file=log)
return

Expand Down Expand Up @@ -533,7 +533,7 @@ def buildBouquetsIndex(self, path, bouquetsOrder, providers, bouquetsToKeep, cur

try:
os.remove(path + "/" + filename)
except:
except Exception as e:
print("[ABM-BouquetsWriter] Cannot delete %s: %s" % (filename, e), file=log)
continue
print("[ABM-BouquetsWriter] Done", file=log)
Expand Down

0 comments on commit ce0e16f

Please sign in to comment.