diff --git a/boswatch/descriptor/descriptor.py b/boswatch/descriptor/descriptor.py index d508418..304093e 100644 --- a/boswatch/descriptor/descriptor.py +++ b/boswatch/descriptor/descriptor.py @@ -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 diff --git a/boswatch/utils/paths.py b/boswatch/utils/paths.py index 4824af5..dd64d30 100644 --- a/boswatch/utils/paths.py +++ b/boswatch/utils/paths.py @@ -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 diff --git a/logo/dev.png b/logo/dev.png new file mode 100644 index 0000000..4bd3a4d Binary files /dev/null and b/logo/dev.png differ