Skip to content

Commit

Permalink
Only try to read backlog storage if it is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Humbedooh authored May 28, 2020
1 parent 797685d commit 44d8d40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ async def write_backlog_storage(self):
await asyncio.sleep(10)

def read_backlog_storage(self):
if os.path.exists(self.config.backlog.storage):
if self.config.backlog.storage and os.path.exists(self.config.backlog.storage):
try:
readlines = 0
with open(self.config.backlog.storage, 'r') as fp:
Expand Down

0 comments on commit 44d8d40

Please sign in to comment.