Skip to content

Commit

Permalink
added compatibility for non screen devices
Browse files Browse the repository at this point in the history
  • Loading branch information
lxgr-linux committed Sep 28, 2021
1 parent 41d59a3 commit d2ac31f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scrap_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
MAXCACHE_LINE = 512
MAXCACHE_FRAME = 64

screen_width, screen_height = os.get_terminal_size()
try:
screen_width, screen_height = os.get_terminal_size()
except OSError:
screen_width, screen_height = 100, 100

class CoordinateError(Exception):
"""
Expand Down

0 comments on commit d2ac31f

Please sign in to comment.