Skip to content

Commit

Permalink
Correct bug with optional import
Browse files Browse the repository at this point in the history
  • Loading branch information
wagga40 authored Feb 2, 2025
1 parent 2f7baf6 commit 51e51ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zircolite_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ def ImportErrorHandler(config):
config.template = None
if xmlImportDisabled:
importErrorList.append(f"{Fore.LIGHTYELLOW_EX} [i] Cannot import 'lxml', cannot use XML logs as input{Fore.RESET}")
if config.xml:
if config.xml_input:
return f"{Fore.RED} [-] Cannot import 'lxml', but according to command line provided it is needed{Fore.RESET}", config, True

if config.debug or config.imports:
Expand Down Expand Up @@ -1817,4 +1817,4 @@ def main():
consoleLogger.info(f"\nFinished in {int((time.time() - start_time))} seconds")

if __name__ == "__main__":
main()
main()

0 comments on commit 51e51ab

Please sign in to comment.