Show absolute path instead of pathclass object in NoClosestPhotoDB.

master
voussoir 2021-05-16 16:58:53 -07:00
parent 1a944f574e
commit 399d27bb44
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
2 changed files with 2 additions and 2 deletions

View File

@ -203,7 +203,7 @@ class NoClosestPhotoDB(EtiquetteException):
For calls to PhotoDB.closest_photodb where none exists between cwd and
drive root.
'''
error_message = 'There is no PhotoDB in {} or its parents.'
error_message = 'There is no PhotoDB in "{}" or its parents.'
class NoYields(EtiquetteException):
'''

View File

@ -1967,7 +1967,7 @@ class PhotoDB(
break
parent = path.parent
if path == parent:
raise exceptions.NoClosestPhotoDB(cwd)
raise exceptions.NoClosestPhotoDB(cwd.absolute_path)
path = parent
path = path.with_child(constants.DEFAULT_DATADIR)