This repository was archived by the owner on Jul 9, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 82
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
[Bug]: Error "'NoneType' object has no attribute 'split'" on attribute 'publishedAt' #394
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug.
When trying to select a model that is missing a value in the 'publishedAt' attribute, the GUI shows "Error" in every field and prevents interacting with the model itself. There is no crashing or freezing and you can select a different model. You simply cannot interact with the one lacking that value. The error message in the console shows it is hitting the problem at line 650 in civitai_api.py. The full log is provided in the appropriate field below here.
Steps to reproduce the problem.
- Attempt to select any model in the CivitAI+ Browser that has no value for 'publishedAt' provided.
- Every field in the GUI will show "Error" and you cannot use any options for the model
Expected behavior
Every available field in the CivitAI+ browser GUI will display, any unavailable fields are left blank or have a default value provided, and the selected model can be updated/downloaded.
System info
- Extension version: v3.6.0
- OS: Win 10 22H2
- SD-WebUI version: Automatic1111 v1.10.1
- Python: 3.10.6
Console logs
Traceback (most recent call last):
File "D:\sd.webui\system\python\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "D:\sd.webui\system\python\lib\site-packages\gradio\blocks.py", line 1431, in process_api
result = await self.call_function(
File "D:\sd.webui\system\python\lib\site-packages\gradio\blocks.py", line 1103, in call_function
prediction = await anyio.to_thread.run_sync(
File "D:\sd.webui\system\python\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "D:\sd.webui\system\python\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread return await future
File "D:\sd.webui\system\python\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run
result = context.run(func, *args)
File "D:\sd.webui\system\python\lib\site-packages\gradio\utils.py", line 707, in wrapper
response = f(*args, **kwargs)
File "D:\sd.webui\webui\extensions\sd-civitai-browser-plus\scripts\civitai_gui.py", line 493, in update_models_dropdown
(html, tags, base_mdl, DwnButton, SaveImages, DelButton, filelist, filename, dl_url, id, current_sha256, install_path, sub_folder) = _api.update_model_info(model_string, model_versions.get('value'))
File "D:\sd.webui\webui\extensions\sd-civitai-browser-plus\scripts\civitai_api.py", line 650, in update_model_info
model_date_published = selected_version.get('publishedAt', '').split('T')[0]
AttributeError: 'NoneType' object has no attribute 'split'Additional information
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working