It's a function, not a variable
This commit is contained in:
parent
ae87df72c9
commit
8094d335de
1 changed files with 3 additions and 3 deletions
6
main.py
6
main.py
|
@ -119,7 +119,7 @@ if __name__ == "__main__":
|
||||||
ts = found["ts"]
|
ts = found["ts"]
|
||||||
except Exception as E:
|
except Exception as E:
|
||||||
print("[WARN] Exception:")
|
print("[WARN] Exception:")
|
||||||
for line in format_exc:
|
for line in format_exc():
|
||||||
print(f"[WARN] {line}")
|
print(f"[WARN] {line}")
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
@ -139,7 +139,7 @@ if __name__ == "__main__":
|
||||||
print("[INFO] Message sent (to the thread)!")
|
print("[INFO] Message sent (to the thread)!")
|
||||||
except Exception as E:
|
except Exception as E:
|
||||||
print("[WARN] Exception:")
|
print("[WARN] Exception:")
|
||||||
for line in format_exc:
|
for line in format_exc():
|
||||||
print(f"[WARN] {line}")
|
print(f"[WARN] {line}")
|
||||||
break
|
break
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
@ -154,7 +154,7 @@ if __name__ == "__main__":
|
||||||
print("[INFO] Message sent (to the channel)!")
|
print("[INFO] Message sent (to the channel)!")
|
||||||
except Exception as E:
|
except Exception as E:
|
||||||
print("[WARN] Exception:")
|
print("[WARN] Exception:")
|
||||||
for line in format_exc:
|
for line in format_exc():
|
||||||
print(f"[WARN] {line}")
|
print(f"[WARN] {line}")
|
||||||
break
|
break
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|
Loading…
Reference in a new issue