Skip to content

Commit f7d72b2

Browse files
calinmarinalukeis
authored andcommitted
fix for when trying to start firefox with a backed up profile and already existing extension.
Fixes Issue #8521 Signed-off-by: Luke Inman-Semerau <[email protected]>
1 parent e7620c5 commit f7d72b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

py/selenium/webdriver/firefox/firefox_profile.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ def _install_extension(self, addon, unpack=True):
278278
os.makedirs(extensions_path)
279279
shutil.copy(xpifile, addon_path + '.xpi')
280280
else:
281-
shutil.copytree(addon, addon_path, symlinks=True)
281+
if not os.path.exists(addon_path):
282+
shutil.copytree(addon, addon_path, symlinks=True)
282283

283284
# remove the temporary directory, if any
284285
if tmpdir:

0 commit comments

Comments
 (0)