Name proper exception for _precheck func, remove unnecessary comments/print in helpers.py

This commit is contained in:
2023-05-11 20:01:33 -05:00
parent d8ad8d7b57
commit 8e4b59e40b
2 changed files with 2 additions and 8 deletions

View File

@@ -19,15 +19,11 @@ ALL_EXTENSIONS = RAW_EXTS + LOSSY_EXTS
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
# kB Kilobyte
# KB/KiB Kibibyte
# Kb Kibibit
# kb Kilobit
byte_magnitudes = {
"B": 1,
}
# Generate every variation of byte suffixes
for magnitude, suffix_kibi in enumerate(["K", "M", "G", "T", "P", "E", "Z", "Y"], start=0):
suffix_kilo = suffix_kibi.lower()
values: List[Tuple[str, int]] = [
@@ -46,8 +42,6 @@ for magnitude, suffix_kibi in enumerate(["K", "M", "G", "T", "P", "E", "Z", "Y"]
for suffix, scale in values:
byte_magnitudes[suffix] = scale
print(byte_magnitudes)
def valid_extension(extension: str) -> bool:
"""

View File

@@ -78,7 +78,7 @@ class MasterFileProcessor(object):
"""
Checks that the MasterFileProcessor can successfully process all files with the current configuration options.
:except Exception: when the current configuration will be unable to complete based on the current parameters.
:except InvalidConfigurationError: when the current configuration will be unable to complete based on the current parameters.
"""
# single_override ensures that the application will always complete, even if slowly, one-by-one
if not self.single_override: