Commit 472f97f0 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Fix Pithos backend initialization

Update pithcat to initialize the Pithos ModularBackend differently,
based on the type of the requested image URL. Specifically, in case the
image URL if a 'pithosmap' URL, no access to the database is needed. So
in this case, the backend must be initialized with 'None' database
connection URL.
parent ce30e1f5
......@@ -122,7 +122,10 @@ def main():
db_uri = environ['PITHCAT_INPUT_DB'] if not options.db else options.db
backend = ModularBackend(None, db_uri, None, data_path)
backend = ModularBackend(None,
db_uri if type(url) in LocationURL else None,
if options.size:
print_size(backend, url)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment