Skip to content

Commit

Permalink
[Fixed] Case when logo is None
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Mar 30, 2024
1 parent f1eaee6 commit 2295c8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kibot/out_bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,8 @@ def solve_logo(self):
w = self.xlsx.logo_width
else:
return None
if not logo:
return None
ext = os.path.splitext(logo)[1]
if ext.lower() != '.svg':
return None
Expand Down

0 comments on commit 2295c8e

Please sign in to comment.