mdify-cli 2.9.5__tar.gz → 2.10.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mdify_cli-2.9.5/mdify_cli.egg-info → mdify_cli-2.10.0}/PKG-INFO +1 -1
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/mdify/__init__.py +1 -1
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/mdify/cli.py +19 -3
- {mdify_cli-2.9.5 → mdify_cli-2.10.0/mdify_cli.egg-info}/PKG-INFO +1 -1
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/pyproject.toml +1 -1
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/LICENSE +0 -0
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/README.md +0 -0
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/assets/mdify.png +0 -0
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/mdify/__main__.py +0 -0
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/mdify/container.py +0 -0
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/mdify/docling_client.py +0 -0
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/mdify_cli.egg-info/SOURCES.txt +0 -0
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/mdify_cli.egg-info/dependency_links.txt +0 -0
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/mdify_cli.egg-info/entry_points.txt +0 -0
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/mdify_cli.egg-info/requires.txt +0 -0
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/mdify_cli.egg-info/top_level.txt +0 -0
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/setup.cfg +0 -0
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/tests/test_cli.py +0 -0
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/tests/test_container.py +0 -0
- {mdify_cli-2.9.5 → mdify_cli-2.10.0}/tests/test_docling_client.py +0 -0
|
@@ -521,8 +521,8 @@ class Spinner:
|
|
|
521
521
|
self.running = False
|
|
522
522
|
if self.thread:
|
|
523
523
|
self.thread.join(timeout=0.5)
|
|
524
|
-
# Clear the spinner line
|
|
525
|
-
print(f"\r{' ' *
|
|
524
|
+
# Clear the spinner line with enough spaces to cover the longest possible line
|
|
525
|
+
print(f"\r{' ' * 120}\r", end="", flush=True)
|
|
526
526
|
|
|
527
527
|
|
|
528
528
|
# =============================================================================
|
|
@@ -982,6 +982,7 @@ def main() -> int:
|
|
|
982
982
|
)
|
|
983
983
|
elapsed = time.time() - start_time
|
|
984
984
|
|
|
985
|
+
# Stop spinner before any output
|
|
985
986
|
if not args.quiet:
|
|
986
987
|
spinner.stop()
|
|
987
988
|
|
|
@@ -1004,12 +1005,27 @@ def main() -> int:
|
|
|
1004
1005
|
except Exception as e:
|
|
1005
1006
|
elapsed = time.time() - start_time
|
|
1006
1007
|
failed_count += 1
|
|
1008
|
+
# Stop spinner before printing error
|
|
1007
1009
|
if not args.quiet:
|
|
1008
1010
|
spinner.stop()
|
|
1011
|
+
|
|
1012
|
+
# Check if container is still healthy
|
|
1013
|
+
error_msg = str(e)
|
|
1014
|
+
if "Connection refused" in error_msg or "Connection aborted" in error_msg or "RemoteDisconnected" in error_msg:
|
|
1015
|
+
if not container.is_ready():
|
|
1016
|
+
if not args.quiet:
|
|
1017
|
+
print(
|
|
1018
|
+
f"{progress} {input_file.name} ✗ ({format_duration(elapsed)})"
|
|
1019
|
+
)
|
|
1020
|
+
print(f" Error: Container crashed (file may be too complex or large)", file=sys.stderr)
|
|
1021
|
+
print(f" Stopping remaining conversions", file=sys.stderr)
|
|
1022
|
+
break
|
|
1023
|
+
|
|
1024
|
+
if not args.quiet:
|
|
1009
1025
|
print(
|
|
1010
1026
|
f"{progress} {input_file.name} ✗ ({format_duration(elapsed)})"
|
|
1011
1027
|
)
|
|
1012
|
-
print(f" Error: {
|
|
1028
|
+
print(f" Error: {error_msg}", file=sys.stderr)
|
|
1013
1029
|
|
|
1014
1030
|
total_elapsed = time.time() - conversion_start
|
|
1015
1031
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|