mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-10 02:29:19 +03:00
clean up
This commit is contained in:
parent
b1ef1291c1
commit
6e09f55bd3
@ -4,7 +4,6 @@ import asyncio
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
import traceback
|
|
||||||
from importlib.util import find_spec
|
from importlib.util import find_spec
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from urllib.parse import quote_plus
|
from urllib.parse import quote_plus
|
||||||
@ -1086,10 +1085,9 @@ async def delete_camera(
|
|||||||
except Exception:
|
except Exception:
|
||||||
with open(config_file, "w") as f:
|
with open(config_file, "w") as f:
|
||||||
f.write(old_raw_config)
|
f.write(old_raw_config)
|
||||||
logger.error(
|
logger.exception(
|
||||||
"Config error after removing camera %s:\n%s",
|
"Config error after removing camera %s",
|
||||||
camera_name,
|
camera_name,
|
||||||
traceback.format_exc(),
|
|
||||||
)
|
)
|
||||||
return JSONResponse(
|
return JSONResponse(
|
||||||
content={
|
content={
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user