mirror of
https://github.com/Xevion/phototag.git
synced 2025-12-09 14:08:01 -06:00
Name proper exception for _precheck func, remove unnecessary comments/print in helpers.py
This commit is contained in:
@@ -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:
|
||||
"""
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user