mirror of
git://git.acid.vegas/archive.git
synced 2024-12-27 17:16:39 +00:00
debug mode
This commit is contained in:
parent
19597e4bf5
commit
4e3b67ca87
@ -66,15 +66,15 @@ class Bot():
|
||||
while True:
|
||||
async with aiofiles.open(FIFO_PATH) as fifo:
|
||||
while True:
|
||||
try:
|
||||
# try:
|
||||
await self.sendmsg(connection.channel, FIFO_PATH.read_text())
|
||||
except Exception as ex:
|
||||
try:
|
||||
await self.irc_error(connection.channel, 'Error occured in the loop_tail function!', ex)
|
||||
break
|
||||
except:
|
||||
error('Fatal error occured in the loop_tail functions!', ex)
|
||||
break
|
||||
# except Exception as ex:
|
||||
# try:
|
||||
# await self.irc_error(connection.channel, 'Error occured in the loop_tail function!', ex)
|
||||
# break
|
||||
# except:
|
||||
# error('Fatal error occured in the loop_tail functions!', ex)
|
||||
# break
|
||||
|
||||
async def connect(self):
|
||||
while True:
|
||||
@ -123,9 +123,9 @@ class Bot():
|
||||
error('The bot is already running or nick is in use.')
|
||||
except (UnicodeDecodeError, UnicodeEncodeError):
|
||||
pass
|
||||
except Exception as ex:
|
||||
error('fatal error occured', ex)
|
||||
break
|
||||
# except Exception as ex:
|
||||
# error('fatal error occured', ex)
|
||||
# break
|
||||
finally:
|
||||
self.last = time.time()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user