some changes
This commit is contained in:
parent
640cc27e34
commit
253e3b62fb
@ -591,7 +591,7 @@ pub mod ship {
|
||||
impl RawShip {
|
||||
#[inline]
|
||||
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 {
|
||||
println!("ERROR!\n{:?}\n----------", e);
|
||||
return None;
|
||||
|
@ -12,8 +12,8 @@ import logging
|
||||
import traceback
|
||||
|
||||
from pathlib import Path
|
||||
from defusedxml.ElementTree import parse
|
||||
from xml.etree.ElementTree import Element, ElementTree
|
||||
# from defusedxml.ElementTree import parse
|
||||
# from xml.etree.ElementTree import Element, ElementTree
|
||||
from typing import List, TYPE_CHECKING, Union, Dict, Optional, Generator, Tuple
|
||||
|
||||
from pyglet.math import Vec4
|
||||
|
Loading…
Reference in New Issue
Block a user