Skip to content

Commit

Permalink
Add debug assert string
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCat467 committed Nov 27, 2023
1 parent 1a1d4c5 commit a52b2cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sanescansrv/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def preform_scan(
name = setting.name.replace("-", "_")
value: str | int = setting.set
if sane.TYPE_STR[device[name].type] in ints:
assert isinstance(value, str)
assert isinstance(value, str), f"{value = } {type(value) = }"
if not value.isdigit():
continue
value = int(value)
Expand Down

0 comments on commit a52b2cf

Please sign in to comment.