changeset 44847:11592ce6a711

phabricator: avoid passing None to pycompat.fsdecode Differential Revision: https://phab.mercurial-scm.org/D8525
author Steve Fink <sfink@mozilla.com>
date Thu, 27 Feb 2020 09:54:34 -0800
parents 47787a48f469
children 7e7080ab8ba8
files hgext/phabricator.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/phabricator.py	Sun May 17 12:23:03 2020 -0400
+++ b/hgext/phabricator.py	Thu Feb 27 09:54:34 2020 -0800
@@ -238,8 +238,8 @@
 
     def decorate(fn):
         def inner(*args, **kwargs):
-            cassette = pycompat.fsdecode(kwargs.pop('test_vcr', None))
-            if cassette:
+            if kwargs.get('test_vcr'):
+                cassette = pycompat.fsdecode(kwargs.pop('test_vcr'))
                 import hgdemandimport
 
                 with hgdemandimport.deactivated():