We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3d0d92 commit b60a0dfCopy full SHA for b60a0df
pygitlab.py
@@ -275,8 +275,12 @@ def number_to_perm_type(perm_types, perm_number):
275
276
gl = None
277
278
-cp = configparser.ConfigParser()
279
-cp.read(args.configfile)
+try:
+ cp = configparser.ConfigParser()
280
+ cp.read(args.configfile)
281
+except TypeError:
282
+ logger.error("Can't read config from %s. Please specify another config file with -c <path>." % args.configfile)
283
+ exit(-1)
284
try:
285
password = cp.get("default", "password")
286
email = cp.get("default", "email")
0 commit comments