Explorar o código

[slack] Not raise ImportError just pass

Harshg999 %!s(int64=4) %!d(string=hai) anos
pai
achega
f76a841a6b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/core/src/desktop/lib/botserver/views.py

+ 1 - 1
desktop/core/src/desktop/lib/botserver/views.py

@@ -41,7 +41,7 @@ LOG = logging.getLogger(__name__)
 try:
   from prettytable import PrettyTable
 except ImportError:
-  raise ImportError("prettytable module not found")
+  pass
 
 SLACK_VERIFICATION_TOKEN = conf.SLACK.SLACK_VERIFICATION_TOKEN.get()
 SLACK_BOT_USER_TOKEN = conf.SLACK.SLACK_BOT_USER_TOKEN.get()