Skip to content

Commit

Permalink
dont fail if commands are -x
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Feb 14, 2017
1 parent 4cb7d26 commit f62039d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bot.py
Expand Up @@ -31,8 +31,9 @@ def message(self, e, msg):
result = subprocess.check_output(['mods/' + mod, msg])
self.connection.privmsg(config('channel'), result.decode().strip())
except subprocess.CalledProcessError:
print("subprocess failed")

print('subprocess failed')
except PermissionError:
print('couldnt execute ' + mod)

def main():
bot = Petal(config('channel'), config('name'), config('server'), config('port'))
Expand Down

0 comments on commit f62039d

Please sign in to comment.