Compare commits
No commits in common. "65717b9ad976ed0cc56411f8cee59b07f023bbaf" and "994d47a6907efec15e175e3515ad6b4d16f4ad2d" have entirely different histories.
65717b9ad9
...
994d47a690
1 changed files with 3 additions and 12 deletions
15
main.py
15
main.py
|
@ -3,7 +3,6 @@ from slack_bolt import App
|
|||
from slack_bolt.adapter.socket_mode import SocketModeHandler
|
||||
from dotenv import load_dotenv
|
||||
import firepup650 as fp
|
||||
from traceback import format_exc
|
||||
|
||||
input = fp.replitInput
|
||||
|
||||
|
@ -118,9 +117,7 @@ if __name__ == "__main__":
|
|||
]
|
||||
ts = found["ts"]
|
||||
except Exception as E:
|
||||
print("[WARN] Exception:")
|
||||
for line in format_exc().split("\n")[:-1]:
|
||||
print(f"[WARN] {line}")
|
||||
print(f"[WARN] Exception: {E}")
|
||||
break
|
||||
else:
|
||||
ts = input("TS ID")
|
||||
|
@ -138,10 +135,7 @@ if __name__ == "__main__":
|
|||
)
|
||||
print("[INFO] Message sent (to the thread)!")
|
||||
except Exception as E:
|
||||
print("[WARN] Exception:")
|
||||
for line in format_exc().split("\n")[:-1]:
|
||||
print(f"[WARN] {line}")
|
||||
break
|
||||
print(f"[WARN] Exception: {E}")
|
||||
except KeyboardInterrupt:
|
||||
print()
|
||||
if ts:
|
||||
|
@ -153,9 +147,6 @@ if __name__ == "__main__":
|
|||
client.chat_postMessage(channel=chan, text=msg)
|
||||
print("[INFO] Message sent (to the channel)!")
|
||||
except Exception as E:
|
||||
print("[WARN] Exception:")
|
||||
for line in format_exc().split("\n")[:-1]:
|
||||
print(f"[WARN] {line}")
|
||||
break
|
||||
print(f"[WARN] Exception: {E}")
|
||||
except KeyboardInterrupt:
|
||||
print()
|
||||
|
|
Loading…
Reference in a new issue