Skip to content

Commit

Permalink
catch commands no longer supported and raise an error
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCaha committed Nov 29, 2023
1 parent ac381e0 commit abc1d51
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions processing_r/processing/algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,12 @@ def process_metadata_line(self, line): # pylint: disable=too-many-return-statem
self.tr('HTML files (*.html)'), optional=True))
return

# these metadata commands are no longer supported
if line.lower().strip().startswith('load_raster_using_rgdal') or \
line.lower().strip().startswith('dontuserasterpackage') or \
line.lower().strip().startswith('load_vector_using_rgdal'):
raise QgsProcessingException("This command is no longer supported, `rgdal` package was removed from CRAN.")

# passfilenames is the older version, should be considere obsolete
if line.lower().strip().startswith('pass_filenames') or\
line.lower().strip().startswith('passfilenames'):
Expand Down

0 comments on commit abc1d51

Please sign in to comment.