Skip to content

Commit

Permalink
Fix undefined extra_rcparams
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Apr 1, 2023
1 parent 6a47655 commit 8b83298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_mpl/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,8 @@ def save_figure(self, item, fig, filename):

original_source_date_epoch = os.environ.get('SOURCE_DATE_EPOCH', None)

extra_rcparams = {}

if deterministic:

# Make sure we don't modify the original dictionary in case is a common
Expand All @@ -566,8 +568,6 @@ def save_figure(self, item, fig, filename):

ext = self._file_extension(item)

extra_rcparams = {}

if ext == 'png':
extra_metadata = {"Software": None}
elif ext == 'pdf':
Expand Down

0 comments on commit 8b83298

Please sign in to comment.