This commit is contained in:
shenjack-5600u 2024-05-13 20:19:20 +08:00
parent 7a17a70014
commit eec9340434
Signed by: shenjack
GPG Key ID: FDF9864E11C7E79F
3 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ pub type IdType = i64;
#[pyfunction] #[pyfunction]
fn get_version_str() -> String { fn get_version_str() -> String {
"0.3.1".to_string() env!("CARGO_PKG_VERSION").to_string()
} }
#[pyfunction] #[pyfunction]

View File

@ -242,7 +242,7 @@ impl RawShip {
pub fn from_file(path: String) -> Option<RawShip> { pub fn from_file(path: String) -> Option<RawShip> {
let ship_file = fs::read_to_string(path); // for encoding error let ship_file = fs::read_to_string(path); // for encoding error
if let Err(e) = ship_file { if let Err(e) = ship_file {
println!("ERROR!\n{:?}\n----------", e); println!("ERROR!\n{}\n----------", e);
return None; return None;
} }
let ship_file = ship_file.unwrap(); let ship_file = ship_file.unwrap();
@ -250,7 +250,7 @@ impl RawShip {
match ship { match ship {
Ok(ship) => Some(ship), Ok(ship) => Some(ship),
Err(e) => { Err(e) => {
println!("ERROR!\n{} {}\n----------", e, e.source()); println!("ERROR!\n{}", e);
None None
} }
} }

View File

@ -16,7 +16,7 @@ from Difficult_Rocket.api.types import Options, Version
from lib_not_dr import loggers from lib_not_dr import loggers
DR_rust_version = Version("0.3.1") # DR_mod 的 Rust 编写部分的兼容版本 DR_rust_version = Version("0.3.2") # DR_mod 的 Rust 编写部分的兼容版本
logger = loggers.config.get_logger_from_old("client.dr_game", "client") logger = loggers.config.get_logger_from_old("client.dr_game", "client")