Skip to content

Commit

Permalink
add panic in democracy
Browse files Browse the repository at this point in the history
  • Loading branch information
apopiak committed Jul 9, 2020
1 parent 11f06d7 commit 31f3e0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frame/democracy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,7 @@ decl_module! {

/// Weight: see `begin_block`
fn on_initialize(n: T::BlockNumber) -> Weight {
panic!("DEMOCRACY!");
Self::begin_block(n).unwrap_or_else(|e| {
sp_runtime::print(e);
0
Expand Down

0 comments on commit 31f3e0e

Please sign in to comment.