diff --git a/rezeptionistin.py b/rezeptionistin.py index 5f95b34..e532ed3 100755 --- a/rezeptionistin.py +++ b/rezeptionistin.py @@ -116,7 +116,7 @@ def geturlsfrommsg(self, message): def getpage(self, url): try: req = urllib2.Request(url, headers={ 'User-Agent': self.useragent }) - soup = BeautifulSoup(urllib2.urlopen(req),"html.parser") + soup = BeautifulSoup(urllib2.urlopen(req, timeout=3),"html.parser") except: soup = None