check if both list and link are provided
This commit is contained in:
@@ -61,9 +61,12 @@ class Gallery:
|
||||
for key, env_var in auth_env.items():
|
||||
command += ["-o", f"{key}={os.environ.get(env_var, '')}"]
|
||||
|
||||
if self.link and not self.list:
|
||||
if self.link and self.list:
|
||||
LOG.warning("Both link and list set; using link and ignoring list.")
|
||||
command.append(self.link)
|
||||
if self.list and not self.link:
|
||||
elif self.link:
|
||||
command.append(self.link)
|
||||
elif self.list:
|
||||
command += ["-i", queue]
|
||||
|
||||
LOG.debug(command)
|
||||
|
||||
Reference in New Issue
Block a user