Skip to content

Commit 250142d

Browse files
Update botcity/web/bot.py
Co-authored-by: Hugo Slepicka <hhslepicka@users.noreply.github.com>
1 parent ee2317b commit 250142d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

botcity/web/bot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def _cleanup(bot: ReferenceType[WebBot]):
5252
options = bot().options
5353
bot().stop_browser()
5454
temp_dir = options._botcity_temp_dir
55+
if not temp_dir: return None
5556
shutil.rmtree(temp_dir, ignore_errors=True)
5657
except Exception:
5758
pass

0 commit comments

Comments
 (0)