fix error on os

This commit is contained in:
Mickael 2019-09-01 12:51:41 +02:00
parent 9132f4f03f
commit ce421523f6

View file

@ -1,4 +1,5 @@
from rocketchat_API.rocketchat import RocketChat from rocketchat_API.rocketchat import RocketChat
import os
def Connection(): def Connection():
return RocketChat(None, None, auth_token= os.environ['ROCKETCHAT_AUTH'], user_id= os.environ['ROCKETCHAT_USERID'], server_url=os.environ['ROCKETCHAT_SERVER']) return RocketChat(None, None, auth_token= os.environ['ROCKETCHAT_AUTH'], user_id= os.environ['ROCKETCHAT_USERID'], server_url=os.environ['ROCKETCHAT_SERVER'])