Feb 5th, 2012
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #The way a bot will not disconnect/crash on a crash.
  2. # By Aha2Y <3
  3. ##
  4. import traceback
  5. try:
  6. <bot shit crap here>
  7. except:
  8.       fp = StringIO.StringIO()
  9.       traceback.print_exc(file=fp)
  10.       message = fp.getvalue()
  11.       # Send Error to the IRC channel. (Of underscorex3 :P)
  12.       irc.send('privmsg underscorex3 :error occured. %s\r\n' % (repr(message))
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.