Skip to content
Snippets Groups Projects
Commit e9fb5ca9 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

FIX: quote path

parent e84c0271
No related branches found
No related tags found
1 merge request!105REL: v0.4.0
Pipeline #34840 passed
......@@ -448,7 +448,7 @@ class CaosDBIdentifiableAdapter(IdentifiableAdapter):
def get_file(self, identifiable: Identifiable):
if identifiable.path is None:
raise RuntimeError("Path must not be None for File retrieval.")
candidates = db.execute_query("FIND File which is stored at {}".format(
candidates = db.execute_query("FIND File which is stored at '{}'".format(
identifiable.path))
if len(candidates) > 1:
raise RuntimeError("Identifiable was not defined unambigiously.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment