Freshly test-seeded instance crash upon selecting a book from search #17

Closed
opened 2024-07-28 14:30:58 +02:00 by oysteikt · 1 comment
Owner

Please investigate the crash

Log:

*) Choose / Add item with its ISBN
1) Search
2) Show a bookcase, and its items
3) Show borrowed/queued items
4) Show slabbedasker
5) Save changes
6) Abort changes
7) Advanced options
9) Exit
[2]> 1
1) Search everything
2) Search by title
3) Search by author
4) Search by owner
9) Done
> 2
Enter title: s
1) winning ways (9781568811307)
2) theory of numbers (9780486466668)
3) conv surf (9780486462431)
4) math fun and earnest (9780486449685)
5) complex analysis (9780130892393)
6) abstract alg (9781292024967)
7) fractals and chaos (9780750304009)
8) simpsons (9781620402788)
9) math curiosities (9781846683459)
10) rottman slitt (9788278220054)
11) prob and stat (9780321748232)
12) stats with r (9780387954752)
13) maths by exp (9781568814421)
> 5
Traceback (most recent call last):
  File "/nix/store/8dzgagiwp6xi6hahsdgq6y4kb5v8kn4j-python3-3.11.8/lib/python3.11/cmd.py", line 214, in onecmd
    func = getattr(self, 'do_' + cmd)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'WorblehatCli' object has no attribute 'do_1'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/h7x4/.cache/pypoetry/virtualenvs/worblehat-Jge-voHt-py3.11/bin/worblehat", line 6, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/h7x4/git/worblehat/worblehat/main.py", line 61, in main
    WorblehatCli.run_with_safe_exit_wrapper(sql_session)
  File "/home/h7x4/git/worblehat/worblehat/cli/main.py", line 50, in run_with_safe_exit_wrapper
    tool.cmdloop()
  File "/nix/store/8dzgagiwp6xi6hahsdgq6y4kb5v8kn4j-python3-3.11.8/lib/python3.11/cmd.py", line 138, in cmdloop
    stop = self.onecmd(line)
           ^^^^^^^^^^^^^^^^^
  File "/nix/store/8dzgagiwp6xi6hahsdgq6y4kb5v8kn4j-python3-3.11.8/lib/python3.11/cmd.py", line 216, in onecmd
    return self.default(line)
           ^^^^^^^^^^^^^^^^^^
  File "/home/h7x4/git/worblehat/worblehat/cli/main.py", line 155, in default
    super()._default(isbn)
  File "/home/h7x4/git/worblehat/worblehat/cli/prompt_utils.py", line 156, in _default
    return self.funcs[i]['f'](self, arg)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/h7x4/git/worblehat/worblehat/cli/main.py", line 182, in do_search
    ).cmdloop()
      ^^^^^^^^^
  File "/nix/store/8dzgagiwp6xi6hahsdgq6y4kb5v8kn4j-python3-3.11.8/lib/python3.11/cmd.py", line 126, in cmdloop
    line = input(self.prompt)
                 ^^^^^^^^^^^
  File "/home/h7x4/git/worblehat/worblehat/cli/prompt_utils.py", line 179, in prompt
    if self.prompt_header != None:
       ^^^^^^^^^^^^^^^^^^
  File "/home/h7x4/git/worblehat/worblehat/cli/subclis/bookcase_item.py", line 50, in prompt_header
    return _selected_bookcase_item_prompt(self.bookcase_item)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/h7x4/git/worblehat/worblehat/cli/subclis/bookcase_item.py", line 36, in _selected_bookcase_item_prompt
    Bookcase: {bookcase_item.shelf.bookcase.short_str()}
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'bookcase'
Please investigate the crash **Log:** ``` *) Choose / Add item with its ISBN 1) Search 2) Show a bookcase, and its items 3) Show borrowed/queued items 4) Show slabbedasker 5) Save changes 6) Abort changes 7) Advanced options 9) Exit [2]> 1 1) Search everything 2) Search by title 3) Search by author 4) Search by owner 9) Done > 2 Enter title: s 1) winning ways (9781568811307) 2) theory of numbers (9780486466668) 3) conv surf (9780486462431) 4) math fun and earnest (9780486449685) 5) complex analysis (9780130892393) 6) abstract alg (9781292024967) 7) fractals and chaos (9780750304009) 8) simpsons (9781620402788) 9) math curiosities (9781846683459) 10) rottman slitt (9788278220054) 11) prob and stat (9780321748232) 12) stats with r (9780387954752) 13) maths by exp (9781568814421) > 5 Traceback (most recent call last): File "/nix/store/8dzgagiwp6xi6hahsdgq6y4kb5v8kn4j-python3-3.11.8/lib/python3.11/cmd.py", line 214, in onecmd func = getattr(self, 'do_' + cmd) ^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'WorblehatCli' object has no attribute 'do_1' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/h7x4/.cache/pypoetry/virtualenvs/worblehat-Jge-voHt-py3.11/bin/worblehat", line 6, in <module> sys.exit(main()) ^^^^^^ File "/home/h7x4/git/worblehat/worblehat/main.py", line 61, in main WorblehatCli.run_with_safe_exit_wrapper(sql_session) File "/home/h7x4/git/worblehat/worblehat/cli/main.py", line 50, in run_with_safe_exit_wrapper tool.cmdloop() File "/nix/store/8dzgagiwp6xi6hahsdgq6y4kb5v8kn4j-python3-3.11.8/lib/python3.11/cmd.py", line 138, in cmdloop stop = self.onecmd(line) ^^^^^^^^^^^^^^^^^ File "/nix/store/8dzgagiwp6xi6hahsdgq6y4kb5v8kn4j-python3-3.11.8/lib/python3.11/cmd.py", line 216, in onecmd return self.default(line) ^^^^^^^^^^^^^^^^^^ File "/home/h7x4/git/worblehat/worblehat/cli/main.py", line 155, in default super()._default(isbn) File "/home/h7x4/git/worblehat/worblehat/cli/prompt_utils.py", line 156, in _default return self.funcs[i]['f'](self, arg) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/h7x4/git/worblehat/worblehat/cli/main.py", line 182, in do_search ).cmdloop() ^^^^^^^^^ File "/nix/store/8dzgagiwp6xi6hahsdgq6y4kb5v8kn4j-python3-3.11.8/lib/python3.11/cmd.py", line 126, in cmdloop line = input(self.prompt) ^^^^^^^^^^^ File "/home/h7x4/git/worblehat/worblehat/cli/prompt_utils.py", line 179, in prompt if self.prompt_header != None: ^^^^^^^^^^^^^^^^^^ File "/home/h7x4/git/worblehat/worblehat/cli/subclis/bookcase_item.py", line 50, in prompt_header return _selected_bookcase_item_prompt(self.bookcase_item) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/h7x4/git/worblehat/worblehat/cli/subclis/bookcase_item.py", line 36, in _selected_bookcase_item_prompt Bookcase: {bookcase_item.shelf.bookcase.short_str()} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'bookcase' ```
oysteikt added the
bug
label 2024-07-28 14:30:58 +02:00
oysteikt added this to the Initial release milestone 2024-07-28 14:33:22 +02:00
oysteikt added the
crash report
label 2024-07-28 15:28:09 +02:00
Author
Owner

Fixed by 3c4f6ccf8c

Fixed by 3c4f6ccf8cddc1d4cdc94d592d30af064c04a19f
Sign in to join this conversation.
No description provided.