Skip to content

Commit

Permalink
fix bug: name.split
Browse files Browse the repository at this point in the history
  • Loading branch information
nachifur committed Aug 31, 2021
1 parent 933466f commit e727837
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils_img.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,10 @@ def title_init(self, width_2, height_2):
title = title+"/"
name = path.stem
if not self.title_setting[4]:
name = name.split("_", 1)[1]
try:
name = name.split("_", 1)[1]
except:
pass
title = title+name
if self.title_setting[6]:
title = title+path.suffix
Expand Down

0 comments on commit e727837

Please sign in to comment.