Skip to content

Commit dc4cbd0

Browse files
[update-checkout] Replace 17 with errno.EEXIST
Follow-up to #27791
1 parent ea4524c commit dc4cbd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/update_checkout/update_checkout/update_checkout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def symlink_llvm_monorepo(args):
416416
try:
417417
os.symlink(src_path, dst_path)
418418
except OSError as e:
419-
if e.errno == 17:
419+
if e.errno == errno.EEXIST:
420420
print("File '%s' already exists. Remove it, so "
421421
"update-checkout can create the symlink to the "
422422
"llvm-monorepo." % dst_path)

0 commit comments

Comments
 (0)