1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-06 15:43:39 +02:00
Just catch an AttributeError in os_path_samefile instead of using a
general "except".
This commit is contained in:
Marcus Huewe
2019-01-15 17:49:07 +01:00

View File

@@ -247,7 +247,7 @@ buildstatus_symbols = {'succeeded': '.',
def os_path_samefile(path1, path2):
try:
return os.path.samefile(path1, path2)
except:
except AttributeError:
return os.path.realpath(path1) == os.path.realpath(path2)
class File: