mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #5071 from mvdbeek/installation_fixes
[BUG][17.09] Ignore OSError when chmod'ing integrated_tool_panel_conf.xml
This commit is contained in:
@@ -103,4 +103,9 @@ class ManagesIntegratedToolPanelMixin:
|
||||
shutil.copy(filename, filename + ".copy")
|
||||
filename = filename + ".copy"
|
||||
shutil.move(filename, destination)
|
||||
os.chmod(self._integrated_tool_panel_config, 0o644)
|
||||
try:
|
||||
os.chmod(destination, 0o644)
|
||||
except OSError:
|
||||
# That can happen if multiple threads are simultaneously moving/chmod'ing this file
|
||||
# Should be harmless, though this race condition should be avoided.
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user