mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-27 03:48:21 +08:00
Fix: [ALAS] Hide traceback of notify
This commit is contained in:
@@ -65,10 +65,11 @@ def handle_notify(_config: str, **kwargs) -> bool:
|
|||||||
f"Return message:{return_data['wording']}")
|
f"Return message:{return_data['wording']}")
|
||||||
return False
|
return False
|
||||||
except OnePushException:
|
except OnePushException:
|
||||||
logger.exception("Push notify failed")
|
logger.error("Push notify failed")
|
||||||
return False
|
return False
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.exception(e)
|
# don't show any exceptions because exceptions contain variable traceback
|
||||||
|
logger.error(e)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
logger.info("Push notify success")
|
logger.info("Push notify success")
|
||||||
|
|||||||
Reference in New Issue
Block a user