Skip to content

Commit 5e15a9f

Browse files
author
rblazek
committed
try if grass module can be imported
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10817 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 75bd975 commit 5e15a9f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/plugins/grass/scripts/qgis.db.connect-login.pg.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@
7272
import sys
7373
import os
7474
import string
75-
import grass
75+
try:
76+
import grass
77+
except:
78+
raise Exception ("Cannot find 'grass' Python module. Python is supported by GRASS from version 6.4" )
7679

7780
def main():
7881
host = options['host']

0 commit comments

Comments
 (0)