Skip to content

Commit

Permalink
try-catch around ASCII bird (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef-Haupt authored Dec 2, 2024
1 parent 88c9f50 commit 6b6b690
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions birdnet_analyzer/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,11 @@ def __call__(self, parser, args, values, option_string=None):

args = parser.parse_args()

if os.get_terminal_size().columns >= 64:
print(ASCII_LOGO, flush=True)
try:
if os.get_terminal_size().columns >= 64:
print(ASCII_LOGO, flush=True)
except Exception:
pass

# Set paths relative to script path (requested in #3)
cfg.MODEL_PATH = os.path.join(SCRIPT_DIR, cfg.MODEL_PATH)
Expand Down

0 comments on commit 6b6b690

Please sign in to comment.