Skip to content

Commit

Permalink
test only if not None
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Sep 3, 2024
1 parent c23e0d5 commit af151d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Modules/pluginModels.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ def check_found_plugin_model( self, model, manufacturer_name=None, manufacturer_
continue

if (
( "Manufacturer" in x and x["Manufacturer"] and manufacturer_name not in x["Manufacturer"] )
or ( "ManufId" in x and x["ManufId"] and manufacturer_code not in x["ManufId"])
or ( "DeviceID" in x and x["DeviceID"] and device_id not in x["DeviceID"] )
( "Manufacturer" in x and x["Manufacturer"] and manufacturer_name and manufacturer_name not in x["Manufacturer"] )
or ( "ManufId" in x and x["ManufId"] and manufacturer_code and manufacturer_code not in x["ManufId"])
or ( "DeviceID" in x and x["DeviceID"] and device_id and device_id not in x["DeviceID"] )
):
continue

Expand Down

0 comments on commit af151d5

Please sign in to comment.