aboutsummaryrefslogtreecommitdiffstats
path: root/local
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2014-04-28 00:59:29 +0300
committerkongr45gpen <electrovesta@gmail.com>2014-04-28 00:59:29 +0300
commitac155dc4e25a6c91d36d9c7b5f8bed9aacbb426c (patch)
tree1ef564ebe9948bfbc71260e25a84c909296a32a2 /local
parentb4c587246e389b72019f76515dc04e0e13b92eb6 (diff)
downloadsupybot_github-ac155dc4e25a6c91d36d9c7b5f8bed9aacbb426c.tar.gz
supybot_github-ac155dc4e25a6c91d36d9c7b5f8bed9aacbb426c.tar.bz2
supybot_github-ac155dc4e25a6c91d36d9c7b5f8bed9aacbb426c.zip
Add .travis.yml
Diffstat (limited to 'local')
-rw-r--r--local/handler/GithubHandler.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/local/handler/GithubHandler.py b/local/handler/GithubHandler.py
index ea9f7d4..6735f22 100644
--- a/local/handler/GithubHandler.py
+++ b/local/handler/GithubHandler.py
@@ -48,9 +48,10 @@ class GithubHandler(BaseHTTPServer.BaseHTTPRequestHandler):
else:
eventType = ''
- f = open('requests/' + eventType + strftime("%Y-%m-%d %H:%M:%S") + '.json', 'w')
- f.write(json.dumps(data, sort_keys=True, indent=4, separators=(',', ': ')))
- f.close()
+ if not world.testing:
+ f = open('requests/' + eventType + strftime("%Y-%m-%d %H:%M:%S") + '.json', 'w')
+ f.write(json.dumps(data, sort_keys=True, indent=4, separators=(',', ': ')))
+ f.close()
path = s.path.split('/')
channel = configValue('channel')

© 2014-2024 Faster IT GmbH | imprint | privacy policy