diff options
author | diSabler <dissy@ya.ru> | 2020-08-03 14:19:39 +0300 |
---|---|---|
committer | diSabler <dissy@ya.ru> | 2020-08-03 14:19:39 +0300 |
commit | 1ae2a8e285da9ca0c11541862229b260e3daa8d7 (patch) | |
tree | d6bb8fa791128aa9bb4a89bbfc3f78faf5ac0fab /isida.py | |
parent | a718abd0ba590d408bea83ae1ae0e8b5fa7ea382 (diff) |
add: more than one bot`s owner
Diffstat (limited to 'isida.py')
-rw-r--r-- | isida.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -109,7 +109,9 @@ if __name__ == "__main__": crash('Multilaunch detected! Kill pid %s before launch bot again!' % last_pid) except: SM = '\n'.join(str(t) for t in sys.exc_info()) - if 'ProcessLookupError' not in SM: + if 'No such process' in SM: + pass + elif 'ProcessLookupError' not in SM: crash('Unknown exception!\n%s' % SM) writefile(pid_file,str(PID)) |