question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

KeyError crash issue near Y2 rock.

See original GitHub issue
> n
YOU ARE IN A LOW N/S PASSAGE AT A HOLE IN THE FLOOR.  THE HOLE GOES
DOWN TO AN E/W PASSAGE.

THERE IS A SMALL WICKER CAGE DISCARDED NEARBY.

> n
Traceback (most recent call last):
  File "/usr/games/adventure", line 9, in <module>
    load_entry_point('adventure==1.4', 'console_scripts', 'colossal-cave-adventure')()
  File "/usr/share/colossal-cave-adventure/adventure/__main__.py", line 101, in main
    loop(game)
  File "/usr/share/colossal-cave-adventure/adventure/__main__.py", line 79, in loop
    baudout(game.do_command(words))
  File "/usr/share/colossal-cave-adventure/adventure/game.py", line 437, in do_command
    self._do_command(words)
  File "/usr/share/colossal-cave-adventure/adventure/game.py", line 506, in _do_command
    self.dispatch_command(words)
  File "/usr/share/colossal-cave-adventure/adventure/game.py", line 553, in dispatch_command
    return self.do_motion(word1)
  File "/usr/share/colossal-cave-adventure/adventure/game.py", line 701, in do_motion
    self.move_to(move.action)
  File "/usr/share/colossal-cave-adventure/adventure/game.py", line 186, in move_to
    self.move_dwarves()
  File "/usr/share/colossal-cave-adventure/adventure/game.py", line 325, in move_dwarves
    self.describe_location()
  File "/usr/share/colossal-cave-adventure/adventure/game.py", line 379, in describe_location
    self.write(obj.messages[prop])
KeyError: 0

Happened on stream at 23 minutes if you want to check it out too. I’ll see if I can figure out how to reproduce it. https://www.twitch.tv/videos/709451376

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mikesiegelcommented, Aug 15, 2020

Great, thanks for the quick fix. Installed and next time I play adventure I’ll do my best to die with a full bottle. And yes, that is the CowboyNeal. Music by Corvus Covax probably, perhaps ‘Twilight of the Thunder Gods’. A playlist I put together for MUDing.

1reaction
brandon-rhodescommented, Aug 13, 2020

(I edited your comment to switch the triple-single-quotes to triple-backticks, which I think is what was intended.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix KeyError Exceptions in Python - Rollbar
The Python KeyError is an exception that occurs when an attempt is made to access an item in a dictionary that does not...
Read more >
RocksDB recovery crashes with KeyError · Issue #73 - GitHub
We created a simple test for Faust streaming and ran two or more parallel workers, each using own RocksDB. Under high traffic, stopping...
Read more >
Python KeyError Exceptions and How to Handle Them
In this tutorial, you'll learn how to handle Python KeyError exceptions. They are often caused by a bad key lookup in a dictionary,...
Read more >
Getting two errors, keyerror and typeerror after script is left to ...
The problem here is that works and then just crashes. Sometimes it will crash after the first iteration of the while True loop,...
Read more >
Kivy Documentation - Read the Docs
Welcome to Kivy's documentation. Kivy is an open source software library for the rapid development of applications equipped with novel user ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found