Bug 2253667 - [abrt] python3-xword-dl: parse_xword(): amuniversaldownloader.py:56:parse_xword:AttributeError: 'NoneType' object has no attribute 'get'
Summary: [abrt] python3-xword-dl: parse_xword(): amuniversaldownloader.py:56:parse_xwo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-xword-dl
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Davide Cavalca
QA Contact:
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:1d0c9af14babb7a90399e79c75e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-12-08 18:15 UTC by lordmethenor
Modified: 2024-01-25 00:47 UTC (History)
2 users (show)

Fixed In Version: python-xword-dl-2023.12.2-1.fc40 python-xword-dl-2023.12.2-1.fc39 python-xword-dl-2023.12.2-1.fc38
Clone Of:
Environment:
Last Closed: 2024-01-16 02:03:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (734 bytes, text/plain)
2023-12-08 18:15 UTC, lordmethenor
no flags Details
File: cgroup (101 bytes, text/plain)
2023-12-08 18:15 UTC, lordmethenor
no flags Details
File: mountinfo (3.42 KB, text/plain)
2023-12-08 18:15 UTC, lordmethenor
no flags Details
File: open_fds (327 bytes, text/plain)
2023-12-08 18:15 UTC, lordmethenor
no flags Details
File: namespaces (171 bytes, text/plain)
2023-12-08 18:15 UTC, lordmethenor
no flags Details
File: backtrace (1.14 KB, text/plain)
2023-12-08 18:15 UTC, lordmethenor
no flags Details
File: cpuinfo (3.06 KB, text/plain)
2023-12-08 18:15 UTC, lordmethenor
no flags Details
File: environ (1.70 KB, text/plain)
2023-12-08 18:15 UTC, lordmethenor
no flags Details

Description lordmethenor 2023-12-08 18:15:31 UTC
Description of problem:
1. Open Gnome Crosswords
2. Add USA Today to sources
3. Open USA Today
4. Download today's crossword

There is a python crash instead of the crossword downloading successfully. The crossword does not download, but the Crossword GUI app does not fully crash. This has occurred in the past.

Version-Release number of selected component:
python3-xword-dl-2023.7.2-1.fc39

Additional info:
reporter:       libreport-2.17.11
kernel:         6.5.5-200.fc38.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/xword-dl -o - usa
uid:            1000
reason:         amuniversaldownloader.py:56:parse_xword:AttributeError: 'NoneType' object has no attribute 'get'
executable:     /usr/bin/xword-dl
type:           Python3
package:        python3-xword-dl-2023.7.2-1.fc39
runlevel:       N 5
exception_type: AttributeError
crash_function: parse_xword
interpreter:    python3-3.12.0-1.fc39.x86_64

Truncated backtrace:
amuniversaldownloader.py:56:parse_xword:AttributeError: 'NoneType' object has no attribute 'get'

Traceback (most recent call last):
  File "/usr/bin/xword-dl", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.12/site-packages/xword_dl/xword_dl.py", line 233, in main
    puzzle, filename = by_keyword(args.source, **options)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/xword_dl/xword_dl.py", line 45, in by_keyword
    puzzle = dl.download(puzzle_url)
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/xword_dl/downloader/basedownloader.py", line 96, in download
    puzzle = self.parse_xword(xword_data)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/xword_dl/downloader/amuniversaldownloader.py", line 56, in parse_xword
    xword_data.get(field, '')).strip()
    ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'

Local variables in innermost frame:
self: <xword_dl.downloader.amuniversaldownloader.USATodayDownloader object at 0x7fef32732e70>
xword_data: None
fetched: {}
field: 'Title'

Comment 1 lordmethenor 2023-12-08 18:15:34 UTC
Created attachment 2003330 [details]
File: os_info

Comment 2 lordmethenor 2023-12-08 18:15:36 UTC
Created attachment 2003331 [details]
File: cgroup

Comment 3 lordmethenor 2023-12-08 18:15:37 UTC
Created attachment 2003332 [details]
File: mountinfo

Comment 4 lordmethenor 2023-12-08 18:15:38 UTC
Created attachment 2003333 [details]
File: open_fds

Comment 5 lordmethenor 2023-12-08 18:15:39 UTC
Created attachment 2003334 [details]
File: namespaces

Comment 6 lordmethenor 2023-12-08 18:15:40 UTC
Created attachment 2003335 [details]
File: backtrace

Comment 7 lordmethenor 2023-12-08 18:15:41 UTC
Created attachment 2003336 [details]
File: cpuinfo

Comment 8 lordmethenor 2023-12-08 18:15:42 UTC
Created attachment 2003337 [details]
File: environ

Comment 9 Fedora Update System 2024-01-16 02:00:28 UTC
FEDORA-2024-70eecdab4d has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-70eecdab4d

Comment 10 Fedora Update System 2024-01-16 02:03:38 UTC
FEDORA-2024-70eecdab4d has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2024-01-16 02:09:14 UTC
FEDORA-2024-697daceffa has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-697daceffa

Comment 12 Fedora Update System 2024-01-16 02:29:43 UTC
FEDORA-2024-ed77e1dc95 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2024-ed77e1dc95

Comment 13 Fedora Update System 2024-01-17 01:43:36 UTC
FEDORA-2024-ed77e1dc95 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-ed77e1dc95`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-ed77e1dc95

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2024-01-17 18:06:13 UTC
FEDORA-2024-697daceffa has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-697daceffa`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-697daceffa

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2024-01-25 00:40:04 UTC
FEDORA-2024-697daceffa has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2024-01-25 00:47:09 UTC
FEDORA-2024-ed77e1dc95 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.