remove bot.panic() throw
kwarg
This commit is contained in:
parent
fce791e38b
commit
b3f43a6721
1 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,7 @@ class Bot(object):
|
||||||
elif type == TriggerResult.Return:
|
elif type == TriggerResult.Return:
|
||||||
return returned
|
return returned
|
||||||
|
|
||||||
def panic(self, reason=None, throw=True):
|
def panic(self, reason=None):
|
||||||
callback = None
|
callback = None
|
||||||
|
|
||||||
if not reason == None:
|
if not reason == None:
|
||||||
|
@ -326,7 +326,7 @@ class Bot(object):
|
||||||
try:
|
try:
|
||||||
loop()
|
loop()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.panic("Exception on '%s' thread" % name, throw=False)
|
self.panic("Exception on '%s' thread" % name)
|
||||||
|
|
||||||
def _write_loop(self):
|
def _write_loop(self):
|
||||||
while self._writing:
|
while self._writing:
|
||||||
|
|
Loading…
Reference in a new issue