Permalink
Browse files

hot-fixes during deployment of script

  • Loading branch information...
1 parent e8c5069 commit 105d1034317ecd049828e27f21370925e2171432 @msenateatplos msenateatplos committed Jun 12, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 parser.py
  2. +2 −2 signature_tweeter.py
View
@@ -81,7 +81,7 @@ def get_soup(self, page_num, page):
logger.debug("requesting %s" % wh_url)
try:
r = requests.get(wh_url, timeout = 3)
- except Timeout:
+ except:
print "THREAD: parser: requests.get() timed out"
logger.warning("request to %s timed out" % wh_url)
return -1
@@ -152,7 +152,7 @@ def parse_entry(self, entry, page):
else:
print "No last initials provided"
logger.debug("No last initials provided\n")
- print "\n" + clean_name
+ print "\n" + clean_name.encode('utf-8')
logger.debug("name: " + clean_name.encode('utf-8'))
# break up details into component pieces
View
@@ -41,8 +41,8 @@ def get(self):
parser_thread.start()
tweetbot.start()
-raw_input("Press enter to end . . .")
-exit_event.set()
+#raw_input("Press enter to end . . .")
+#exit_event.set()
print "exiting . . ."
parser_thread.join()

0 comments on commit 105d103

Please sign in to comment.