Skip to content

Commit 113d96d

Browse files
committed
lmdpdg: Log errors but generate as many panel drivers as we can
Sometimes there are crashes that cannot be easily fixed, e.g. ValueError: DCS_COMPRESSION_MODE is not supported As far as I know DCS is not supported on mainline. In this case, it's still nice if we generate panel drivers for all other panels at least. So let's log them but continue instead of failing horribly.
1 parent a516096 commit 113d96d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lmdpdg.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import argparse
33
import os
44
import shutil
5+
import sys
6+
import traceback
57

68
import generator
79
from driver import generate_driver
@@ -61,7 +63,10 @@ def generate(p: Panel, options: generator.Options) -> None:
6163
found = False
6264
for panel in Panel.find(fdt):
6365
found = True
64-
generate(panel, args)
66+
try:
67+
generate(panel, args)
68+
except:
69+
traceback.print_exc(file=sys.stdout)
6570

6671
if not found:
6772
print(f"{f.name} does not contain any panel specifications")

0 commit comments

Comments
 (0)