mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-06 15:43:39 +02:00
Merge branch 'samefile' of https://github.com/maltek/osc
Just catch an AttributeError in os_path_samefile instead of using a general "except".
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user