Skip to content

Commit

Permalink
fix search for ui.run() with port
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Jul 21, 2021
1 parent fd9823d commit 4a8232e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nicegui/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Config(BaseModel):
func = node.value.func
if func.value.id == 'ui' and func.attr == 'run':
args = {
keyword.arg: keyword.value.value
keyword.arg: keyword.value.n if isinstance(keyword.value, ast.Num) else keyword.value.value
for keyword in node.value.keywords
}
config = Config(**args)
Expand Down

0 comments on commit 4a8232e

Please sign in to comment.