Spaces:
Runtime error
Runtime error
Add render error logging for debugging
Browse files
server/drone_forest_environment.py
CHANGED
|
@@ -468,7 +468,10 @@ class DroneForestEnvironment(Environment):
|
|
| 468 |
buf = io.BytesIO()
|
| 469 |
img.save(buf, format="PNG")
|
| 470 |
return base64.b64encode(buf.getvalue()).decode("utf-8")
|
| 471 |
-
except Exception:
|
|
|
|
|
|
|
|
|
|
| 472 |
return None
|
| 473 |
|
| 474 |
@property
|
|
|
|
| 468 |
buf = io.BytesIO()
|
| 469 |
img.save(buf, format="PNG")
|
| 470 |
return base64.b64encode(buf.getvalue()).decode("utf-8")
|
| 471 |
+
except Exception as e:
|
| 472 |
+
import traceback
|
| 473 |
+
print(f"[render error] {e}")
|
| 474 |
+
traceback.print_exc()
|
| 475 |
return None
|
| 476 |
|
| 477 |
@property
|