mdify-cli 2.11.1__tar.gz → 2.11.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mdify-cli
3
- Version: 2.11.1
3
+ Version: 2.11.3
4
4
  Summary: Convert PDFs and document images into structured Markdown for LLM workflows
5
5
  Author: tiroq
6
6
  License-Expression: MIT
@@ -1,3 +1,3 @@
1
1
  """mdify - Convert documents to Markdown via Docling container."""
2
2
 
3
- __version__ = "2.11.1"
3
+ __version__ = "2.11.3"
@@ -1032,25 +1032,33 @@ def main() -> int:
1032
1032
  f"{progress} {input_file.name} ✗ ({format_duration(elapsed)})"
1033
1033
  )
1034
1034
  if container_alive:
1035
- print(f" Error: Connection lost (container may be restarting or overloaded)", file=sys.stderr)
1035
+ print(
1036
+ " Error: Connection lost (server may have crashed and restarted)",
1037
+ file=sys.stderr,
1038
+ )
1036
1039
  else:
1037
- print(f" Error: Container crashed while processing file", file=sys.stderr)
1038
- print(f" File may be too complex, large, or malformed", file=sys.stderr)
1039
-
1040
- # Show logs for debugging (whether container is alive or not)
1041
- if DEBUG or not container_alive:
1042
- print(f" Retrieving container logs...", file=sys.stderr)
1043
- logs = container.get_logs(tail=30)
1044
- if logs:
1045
- print(f" Container logs (last 30 lines):", file=sys.stderr)
1046
- for line in logs.strip().split('\n'):
1047
- print(f" {line}", file=sys.stderr)
1048
- else:
1049
- print(f" No logs available", file=sys.stderr)
1050
-
1040
+ print(
1041
+ " Error: Container crashed while processing file",
1042
+ file=sys.stderr,
1043
+ )
1044
+ print(
1045
+ " File may be too complex, large, or malformed",
1046
+ file=sys.stderr,
1047
+ )
1048
+
1049
+ # Always show logs for connection errors to surface root cause
1050
+ print(" Retrieving container logs...", file=sys.stderr)
1051
+ logs = container.get_logs(tail=30)
1052
+ if logs:
1053
+ print(" Container logs (last 30 lines):", file=sys.stderr)
1054
+ for line in logs.strip().split("\n"):
1055
+ print(f" {line}", file=sys.stderr)
1056
+ else:
1057
+ print(" No logs available", file=sys.stderr)
1058
+
1051
1059
  if not container_alive:
1052
- print(f" Stopping remaining conversions", file=sys.stderr)
1053
-
1060
+ print(" Stopping remaining conversions", file=sys.stderr)
1061
+
1054
1062
  # Stop processing if container is dead
1055
1063
  if not container_alive:
1056
1064
  break
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mdify-cli
3
- Version: 2.11.1
3
+ Version: 2.11.3
4
4
  Summary: Convert PDFs and document images into structured Markdown for LLM workflows
5
5
  Author: tiroq
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mdify-cli"
3
- version = "2.11.1"
3
+ version = "2.11.3"
4
4
  description = "Convert PDFs and document images into structured Markdown for LLM workflows"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.8"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes