mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
little adds and changes
This commit is contained in:
parent
b275abd86f
commit
f64a521bd9
|
|
@ -32,7 +32,7 @@ class Descriptor:
|
|||
self._lists = {}
|
||||
|
||||
def loadDescription(self, csvType):
|
||||
"""!Build a new description list
|
||||
"""!Build a new description list from DescriptionList class
|
||||
|
||||
@param csvType: Name of the CSV file without `.csv`
|
||||
@return True or False"""
|
||||
|
|
@ -55,7 +55,7 @@ class Descriptor:
|
|||
bwPacket.setField("longDescription",
|
||||
self._lists[bwPacket.getField("mode")].getLongDescription(bwPacket.getField(bwPacket.getField("mode"))))
|
||||
return True
|
||||
except:
|
||||
except: # pragma: no cover
|
||||
logging.exception("error while adding descriptions")
|
||||
return False
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,10 @@ def createIfNotExist(dirPath):
|
|||
|
||||
@param dirName: Path of the directory
|
||||
@return Path of the directory"""
|
||||
if not os.path.exists(dirPath):
|
||||
os.mkdir(dirPath)
|
||||
logging.debug("directory created: %s", dirPath)
|
||||
try:
|
||||
if not os.path.exists(dirPath):
|
||||
os.mkdir(dirPath)
|
||||
logging.debug("directory created: %s", dirPath)
|
||||
except:
|
||||
logging.exception("error by creating a directory: %s", dirPath)
|
||||
return dirPath
|
||||
|
|
|
|||
BIN
logo/dev.png
Normal file
BIN
logo/dev.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
Loading…
Reference in a new issue