Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb16b052

Browse files
committed
return none if xpath extraction returns empty list
1 parentf8de58e commitb16b052

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎selectorlib/selectorlib.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def _extract_selector(self, field_config, parent_parser):
8484
else:
8585
elements=parent_parser.css(field_config['css'])
8686
item_type=field_config.get('type','Text')
87+
ifnotelements:
88+
returnNone
8789
values= []
8890

8991
forelementinelements:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp