Skip to content

Problem with reddit.disconnect() #1

@pconrad

Description

@pconrad

Problem with reddit.disconnect()

I just dropped reddit.py in a directory, and tried using the reddit object as shown on the readme.rst

However, I got this result:

>>> reddit.disconnect()
Traceback (most recent call last):
  File "./reddit.py", line 135, in disconnect
    with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'weatherservice/cache.js on'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "./reddit.py", line 138, in disconnect
    raise WeatherException("The cache file '{}' was not found.".format(filename) )
NameError: global name 'WeatherException' is not defined
>>>
KeyboardInterrupt
>>>

Am I just doing it wrong, or is there a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions