Small fix
This commit is contained in:
parent
0e14ca600f
commit
46e3665749
@ -157,6 +157,7 @@ def send_content():
|
|||||||
else:
|
else:
|
||||||
caption = caption
|
caption = caption
|
||||||
|
|
||||||
|
try:
|
||||||
if ext_type == "photo": # type: ignore
|
if ext_type == "photo": # type: ignore
|
||||||
|
|
||||||
if configGet("enabled", "caption"):
|
if configGet("enabled", "caption"):
|
||||||
@ -179,6 +180,11 @@ def send_content():
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
|
except Exception as exp:
|
||||||
|
logWrite(locale("post_exception", "console", locale=configGet("locale_log")).format(str(exp), format_exc()))
|
||||||
|
if configGet("error", "reports"):
|
||||||
|
app.send_message(configGet("admin"), locale("post_exception", "message", locale=configGet("locale")).format(exp, traceback.format_exc())) # type: ignore
|
||||||
|
return
|
||||||
|
|
||||||
index["sent"].append(candidate_file)
|
index["sent"].append(candidate_file)
|
||||||
index["last_id"] = sent.id # type: ignore
|
index["last_id"] = sent.id # type: ignore
|
||||||
@ -199,7 +205,7 @@ def send_content():
|
|||||||
logWrite(locale("post_exception", "console", locale=configGet("locale_log")).format(str(exp), format_exc()))
|
logWrite(locale("post_exception", "console", locale=configGet("locale_log")).format(str(exp), format_exc()))
|
||||||
if configGet("error", "reports"):
|
if configGet("error", "reports"):
|
||||||
app.send_message(configGet("admin"), locale("post_exception", "message", locale=configGet("locale")).format(exp, traceback.format_exc())) # type: ignore
|
app.send_message(configGet("admin"), locale("post_exception", "message", locale=configGet("locale")).format(exp, traceback.format_exc())) # type: ignore
|
||||||
pass
|
return
|
||||||
|
|
||||||
|
|
||||||
# Work in progress
|
# Work in progress
|
||||||
|
Reference in New Issue
Block a user