diff --git a/weather.py b/weather.py index f752973..f1e7a27 100755 --- a/weather.py +++ b/weather.py @@ -82,7 +82,7 @@ def get_weather(woeid, unit, format, timeout=None): _get_weather = partial(get_weather, args.woeid, args.unit, args.format, timeout=args.timeout) if args.wrap_i3_status: - stdin = iter(sys.stdin) + stdin = iter(sys.stdin.readline, '') # The first two lines from i3status need to pass through unmodified print(next(stdin), end='')