mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix: resolve merge conflict with main in clipboard.py
This commit is contained in:
commit
d8df91dfa8
76 changed files with 7445 additions and 626 deletions
|
|
@ -300,11 +300,11 @@ def _convert_to_png(path: Path) -> bool:
|
|||
tmp.rename(path)
|
||||
except FileNotFoundError:
|
||||
logger.debug("ImageMagick not installed — cannot convert BMP to PNG")
|
||||
if not path.exists() and tmp.exists():
|
||||
if tmp.exists() and not path.exists():
|
||||
tmp.rename(path)
|
||||
except Exception as e:
|
||||
logger.debug("ImageMagick BMP→PNG conversion failed: %s", e)
|
||||
if not path.exists() and tmp.exists():
|
||||
if tmp.exists() and not path.exists():
|
||||
tmp.rename(path)
|
||||
|
||||
# Can't convert — BMP is still usable as-is for most APIs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue