only options, no file argument possible - parser errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pastebinit |
Invalid
|
Undecided
|
Unassigned |
Bug Description
calling pastebinit with a file as argument fails: `pastebinit file`
If I understand the command parsing correctly, files as argument were intended:
https:/
The traceback below points to a different source location, something fails in the config parser part.
```
Traceback (most recent call last):
File "/usr/lib/
value = d[option]
File "/usr/lib/
return self.__
File "/usr/lib/
raise KeyError(key)
KeyError: 'page'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/
website, params = getParameters(
File "/usr/bin/
params[
File "/usr/lib/
raise NoOptionError(
configparser.
```
Found the culprit in my local config file ~/.pastebinit.xml
Restored the default one and now everything works as expected.
Please close this issue and sorry for the noise
close #1914581