TypeError when attempting to use mod.py #78

Closed
opened 2022-12-29 03:05:33 +01:00 by siina · 1 comment

I have updated to the lastest 0x0 (commit 647e3a54f1) and run the proper migrations. Everything works fine.

However, when I try to use the new modui with kitty as well as konsole, the modui will close to terminal. After doing this many times, I finally get this error when I try to select anything:

Traceback (most recent call last)
/mod.py:254 in on_file_table_selected

│   251 │   │   │   ("Uploaded by:", Text(f.addr)),                                                
│   252 │   │   │   ("Management token:", f.mgmt_token),                                           
│   253 │   │   │   ("Secret:", f.secret),                                                         
│ ❱ 254 │   │   │   ("Is NSFW:", ("Yes" if f.is_nsfw else "No") + f" (Score: {f.nsfw_score:0.4f}   
│   255 │   │   │   ("Is banned:", "Yes" if f.removed else "No"),                                  
│   256 │   │   │   ("Expires:", time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(File.get_expirat   
│   257 │   │   ])                                                                                 

╭─────────────────────────────────────────── locals ────────────────────────────────────────────╮
│       f = <File 3344>                                                                         │
│ message = Selected(FileTable(id='ftable', pseudo_classes={'focus-within', 'hover', 'focus'})) │
│    self = NullptrMod(pseudo_classes={'focus-within'})                                         │
╰───────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: unsupported format string passed to NoneType.__format__

I have all the optional and required dependencies installed.

NSFW detection has never been enabled.

I am using Python 3.10.9

I have updated to the lastest 0x0 (commit `647e3a54f1`) and run the proper migrations. Everything works fine. However, when I try to use the new modui with kitty as well as konsole, the modui will close to terminal. After doing this many times, I finally get this error when I try to select anything: ``` Traceback (most recent call last) /mod.py:254 in on_file_table_selected │ 251 │ │ │ ("Uploaded by:", Text(f.addr)), │ 252 │ │ │ ("Management token:", f.mgmt_token), │ 253 │ │ │ ("Secret:", f.secret), │ ❱ 254 │ │ │ ("Is NSFW:", ("Yes" if f.is_nsfw else "No") + f" (Score: {f.nsfw_score:0.4f} │ 255 │ │ │ ("Is banned:", "Yes" if f.removed else "No"), │ 256 │ │ │ ("Expires:", time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(File.get_expirat │ 257 │ │ ]) ╭─────────────────────────────────────────── locals ────────────────────────────────────────────╮ │ f = <File 3344> │ │ message = Selected(FileTable(id='ftable', pseudo_classes={'focus-within', 'hover', 'focus'})) │ │ self = NullptrMod(pseudo_classes={'focus-within'}) │ ╰───────────────────────────────────────────────────────────────────────────────────────────────╯ TypeError: unsupported format string passed to NoneType.__format__ ``` I have all the optional and required dependencies installed. NSFW detection has never been enabled. I am using Python 3.10.9
mia closed this issue 2022-12-29 19:52:22 +01:00
Owner

Oops. Dumb oversight. Thanks for reporting!

Oops. Dumb oversight. Thanks for reporting!
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mia/0x0#78
No description provided.