flathub / org.flatpak.Builder

16 stars 14 forks source link

AttributeError: 'Namespace' object has no attribute 'json' #185

Closed andrevmatos closed 1 year ago

andrevmatos commented 1 year ago

Trying to trigger a rebuild on flathub interface for chat.rocket.RocketChat, I'm getting this error in the pipeline: https://buildbot.flathub.org/#/builders/7/builds/8887

Traceback (most recent call last):
  File "/app/bin/flatpak-builder-lint", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/app/lib/python3.11/site-packages/flatpak_builder_lint/cli.py", line 148, in main
    if args.exceptions and not args.json:
                               ^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'json'

The same can be seen trying to run the command locally.

bbhtt commented 1 year ago

This is https://github.com/flathub/flatpak-builder-lint/issues/183. You have to wait for the fix to get deployed.

(It only happens when the linter generates some non fatal warnings)

Thanks.