Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing metadata should not break the parser #95

Open
fabi1cazenave opened this issue Feb 8, 2024 · 0 comments · May be fixed by #101
Open

Missing metadata should not break the parser #95

fabi1cazenave opened this issue Feb 8, 2024 · 0 comments · May be fixed by #101
Assignees
Labels
bug Something isn't working

Comments

@fabi1cazenave
Copy link
Collaborator

Trying to load this layout: https://github.com/Nuclear-Squid/ergol/blob/master/layouts/bepo.yaml

$ kalamine  watch bepo.yaml                                                                                                                       [± pr]

Server started: http://localhost:1664
Hit Ctrl-C to stop.
[I 240208 14:43:38 server:335] Serving on http://localhost:5500
[I 240208 14:43:38 handlers:62] Start watching changes
[I 240208 14:43:38 handlers:64] Start detecting changes
127.0.0.1 - - [08/Feb/2024 14:43:38] "GET / HTTP/1.1" 200 -
----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 46484)
Traceback (most recent call last):
  File "/usr/lib/python3.10/socketserver.py", line 316, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.10/socketserver.py", line 347, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.10/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/home/kaze/www/kbd/kalamine/kalamine/server.py", line 65, in __init__
    super().__init__(*args, **kwargs)
  File "/usr/lib/python3.10/http/server.py", line 668, in __init__
    super().__init__(*args, **kwargs)
  File "/usr/lib/python3.10/socketserver.py", line 747, in __init__
    self.handle()
  File "/usr/lib/python3.10/http/server.py", line 433, in handle
    self.handle_one_request()
  File "/usr/lib/python3.10/http/server.py", line 421, in handle_one_request
    method()
  File "/home/kaze/www/kbd/kalamine/kalamine/server.py", line 93, in do_GET
    send(main_page(kb_layout), content="text/html")
  File "/home/kaze/www/kbd/kalamine/kalamine/server.py", line 37, in main_page
    <br /> {layout.meta['locale']}/{layout.meta['variant']}
KeyError: 'locale'
@fabi1cazenave fabi1cazenave added the bug Something isn't working label Feb 8, 2024
@fabi1cazenave fabi1cazenave linked a pull request Feb 9, 2024 that will close this issue
@fabi1cazenave fabi1cazenave self-assigned this Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant