gfcapalbo / python-twitter

Automatically exported from code.google.com/p/python-twitter
Apache License 2.0
0 stars 0 forks source link

_FileCache._GetUsername fails when controlling process not a tty #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
_FileCache._GetUsername falls back to os.getlogin when trying to determine the 
current username 
for setting up its cache file, but when the controlling process is not a tty 
this will raise an IOError. 
Since there are plenty of situations where Python will be launched from 
something that isn't a tty, 
this should either be removed or be wrapped in a try/except with a further 
fallback.

Original issue reported on code.google.com by ubernost...@gmail.com on 21 Jan 2008 at 2:22

GoogleCodeExporter commented 9 years ago

Original comment by dclinton on 13 Mar 2008 at 3:18

GoogleCodeExporter commented 9 years ago
Fixed.  Sorry for the delay!

Original comment by dclinton on 17 Apr 2008 at 4:15