Headline/discord-compiler-bot

Unwrap on None value

Headline opened this issue · 0 comments

May 20 15:43:21 gabriel discord-compiler-bot[2875]: thread 'tokio-runtime-worker' panicked at 'called `Option::unwrap()` on a `None` value', src/utls/discordhelpers/interactions.rs:152:68
May 20 15:43:21 gabriel discord-compiler-bot[2875]: stack backtrace:
May 20 15:43:21 gabriel discord-compiler-bot[2875]:    0: rust_begin_unwind
May 20 15:43:21 gabriel discord-compiler-bot[2875]:              at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:584:5
May 20 15:43:21 gabriel discord-compiler-bot[2875]:    1: core::panicking::panic_fmt
May 20 15:43:21 gabriel discord-compiler-bot[2875]:              at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:143:14
May 20 15:43:21 gabriel discord-compiler-bot[2875]:    2: core::panicking::panic
May 20 15:43:21 gabriel discord-compiler-bot[2875]:              at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:48:5
May 20 15:43:21 gabriel discord-compiler-bot[2875]:    3: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
May 20 15:43:21 gabriel discord-compiler-bot[2875]:    4: discord_compiler_bot::utls::discordhelpers::interactions::handle_asm_or_compile_request::{{closure}}
May 20 15:43:21 gabriel discord-compiler-bot[2875]:    5: discord_compiler_bot::managers::command::CommandManager::on_command::{{closure}}
May 20 15:43:21 gabriel discord-compiler-bot[2875]:    6: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
May 20 15:43:21 gabriel discord-compiler-bot[2875]:    7: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
May 20 15:43:21 gabriel discord-compiler-bot[2875]:    8: tokio::runtime::task::harness::poll_future
May 20 15:43:21 gabriel discord-compiler-bot[2875]:    9: tokio::runtime::task::harness::Harness<T,S>::poll
May 20 15:43:21 gabriel discord-compiler-bot[2875]:   10: std::thread::local::LocalKey<T>::with
May 20 15:43:21 gabriel discord-compiler-bot[2875]:   11: tokio::runtime::thread_pool::worker::Context::run_task
May 20 15:43:21 gabriel discord-compiler-bot[2875]:   12: tokio::runtime::thread_pool::worker::Context::run
May 20 15:43:21 gabriel discord-compiler-bot[2875]:   13: tokio::macros::scoped_tls::ScopedKey<T>::set
May 20 15:43:21 gabriel discord-compiler-bot[2875]:   14: tokio::runtime::thread_pool::worker::run
May 20 15:43:21 gabriel discord-compiler-bot[2875]:   15: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
May 20 15:43:21 gabriel discord-compiler-bot[2875]:   16: tokio::runtime::task::harness::Harness<T,S>::poll
May 20 15:43:21 gabriel discord-compiler-bot[2875]:   17: tokio::runtime::blocking::pool::Inner::run
May 20 15:43:21 gabriel discord-compiler-bot[2875]: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.