File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -323,8 +323,12 @@ def patching_functions(self):
323323 for additional_channel in channel_to_patch ["additional_channels" ]:
324324 additional_category_index = additional_channel ["category" ]
325325 additional_channel_index = additional_channel ["channel" ]
326- additional_category = self .find_category (additional_category_index )
327- additional_channel_dict = self .find_channel (additional_category , additional_channel_index )
326+ additional_category = self .find_category (
327+ additional_category_index
328+ )
329+ additional_channel_dict = self .find_channel (
330+ additional_category , additional_channel_index
331+ )
328332
329333 patch_channel (additional_channel_dict )
330334 except Exception as e :
@@ -333,7 +337,7 @@ def patching_functions(self):
333337
334338Exception:
335339{ e } """
336- )
340+ )
337341 self .error .emit (f"{ e } " )
338342 finally :
339343 percentage += percentage_increment
@@ -376,4 +380,6 @@ def find_channel(category: dict, channel_id: int):
376380 if channel ["item_id" ] == channel_id :
377381 return channel
378382
379- raise KeyError (f"Channel { channel_id } does not exist in category { category ["category_id" ]} !" )
383+ raise KeyError (
384+ f"Channel { channel_id } does not exist in category { category ["category_id" ]} !"
385+ )
You can’t perform that action at this time.
0 commit comments