Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log level error #8

Open
ruz76 opened this issue Mar 19, 2020 · 0 comments
Open

Log level error #8

ruz76 opened this issue Mar 19, 2020 · 0 comments

Comments

@ruz76
Copy link

ruz76 commented Mar 19, 2020

Plugin končí chybou v případě, že uživatel nevybere formát výstupu.

AttributeError: type object 'QgsMessageBar' has no attribute 'CRITICAL'
Traceback (most recent call last):
File "C:\OSGeo4W64\qgis3_profiles\profiles\default/python/plugins\qgis-ruian-plugin\MainApp.py", line 394, in get_options
level=QgsMessageBar.CRITICAL, duration=5)
AttributeError: type object 'QgsMessageBar' has no attribute 'CRITICAL'

Je potřeba upravit na:
from qgis.core import Qgis
level=Qgis.Critical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant